> cat test.c #include <math.h> #include <cairo.h> int main (void) { return 0 ; } > gcc -Wshadow `pkg-config --cflags --libs cairo` test.c In file included from test.c:2: /usr/include/cairo/cairo.h:443: warning: declaration of 'y1' shadows a global declaration /usr/include/bits/mathcalls.h:242: warning: shadowed declaration is here /usr/include/cairo/cairo.h:538: warning: declaration of 'y1' shadows a global declaration /usr/include/bits/mathcalls.h:242: warning: shadowed declaration is here /usr/include/cairo/cairo.h:543: warning: declaration of 'y1' shadows a global declaration /usr/include/bits/mathcalls.h:242: warning: shadowed declaration is here /usr/include/cairo/cairo.h:1257: warning: declaration of 'y0' shadows a global declaration /usr/include/bits/mathcalls.h:241: warning: shadowed declaration is here /usr/include/cairo/cairo.h:1258: warning: declaration of 'y1' shadows a global declaration /usr/include/bits/mathcalls.h:242: warning: shadowed declaration is here /usr/include/cairo/cairo.h:1325: warning: declaration of 'y0' shadows a global declaration /usr/include/bits/mathcalls.h:241: warning: shadowed declaration is here I like to use -Wshadow *and* -Werror on all my stuff but I can't do that if I'm using cairo.
*** This bug has been marked as a duplicate of 4379 ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.