[Bug preprocessor/12258] -Wold-style-cast triggers on casts in macros from system headers

olly at survex dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 15 03:37:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12258

olly at survex dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olly at survex dot com

--- Comment #4 from olly at survex dot com ---
It looks like this was fixed in GCC 4.8 where -ftrack-macro-expansion=2 was
made the default.

With 4.7 the warning goes away if I explicitly pass -ftrack-macro-expansion=2,
while with 4.8 it comes back if I override this new default with
-ftrack-macro-expansion=0.


More information about the Gcc-bugs mailing list