[Bug c/59495] New: -ftrack-macro-expansion=2 ignores warnings originated from /usr/include headers

2013-12-13 Thread doront at mellanox dot com
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: doront at mellanox dot com $ gcc -Wall -Wextra -Werror include-uapi-linux-netlink.h.test.c -ftrack-macro-expansion=0 include-uapi-linux-netlink.h.test.c: In function 'main

[Bug c/59495] -ftrack-macro-expansion=2 ignores warnings originated from /usr/include headers

2013-12-15 Thread doront at mellanox dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59495 --- Comment #3 from Doron Tsur doront at mellanox dot com --- It is probably a false positive bug - warning is undetected. Consider the following code: $ cat define_compare_test.c #include define_compare_test.h #include stdio.h int main(int