I used:

 #pragma GCC diagnostic ignored "-Wformat-extra-args"

To ignore it for now; I tried to use the push/pop diagnostic pragma, but
that is apparently not in GCC 4.4.x, only GCC 4.5.x, so I am going to
move this function to its own file so that I don't lose the usefulness
of the warning in other places in the source code.

Still, it seems that GCC should be aware that it's linking with the GNU
C library and interpret format strings accordingly (or, for that matter,
if -std=gnu99 is defined, like it is for this particular project, be
able to go "Oh, yeah, I know that's a GNU extension," and not warn about
it).

-- 
gcc fails to compile completely valid code with -Wall -Werror
https://bugs.launchpad.net/bugs/619934
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to