[tz] gcc 8 demanded patch (from NetBSD)

Clive D.W. Feather clive at davros.org
Wed May 10 13:33:57 UTC 2017

Robert Elz said:
> The following patch was recently added to NetBSD, to appease
> GCC 8 (apparently) ... "hit" is a bool, and it seems gcc 8 does
> not like ++ operators applied to one of those.

Hmm. It's legal, but it suggests dubious thinking on the part of whoever
wrote it. It's exactly equivalent to "q = true".

("q--" is equivalent to "q = !q".)

Clive D.W. Feather          | If you lie to the compiler,
Email: clive at davros.org     | it will get its revenge.
Web: http://www.davros.org  |   - Henry Spencer
Mobile: +44 7973 377646

More information about the tz mailing list