[Bug 619934] Re: gcc fails to compile completely valid code with -Wall -Werror

2014-06-11 Thread Matthias Klose
** Bug watch added: GCC Bugzilla #61476 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61476 ** Also affects: gcc via http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61476 Importance: Unknown Status: Unknown ** Changed in: gcc-defaults (Ubuntu) Importance: Undecided = Low ** Changed

[Bug 619934] Re: gcc fails to compile completely valid code with -Wall -Werror

2014-06-11 Thread Matthias Klose
see fprintf(3): The conversion specifier m (Glibc extension.) Print output of strerror(errno). No argument is required. ** Changed in: gcc-defaults (Ubuntu) Status: Confirmed = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 619934] Re: gcc fails to compile completely valid code with -Wall -Werror

2010-08-18 Thread Michael B. Trausch
** Attachment added: Dependencies.txt https://bugs.edge.launchpad.net/bugs/619934/+attachment/1498024/+files/Dependencies.txt -- 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

[Bug 619934] Re: gcc fails to compile completely valid code with -Wall -Werror

2010-08-18 Thread Michael B. Trausch
This is an example C program that exhibits the problem. This program will build with gcc just fine and without warnings if no additional flags are specified, but if -Wall is specified it will warn about the line containing the call to printf. That also means that if -Werror is specified that

[Bug 619934] Re: gcc fails to compile completely valid code with -Wall -Werror

2010-08-18 Thread Kees Cook
You can work around it temporarily with -Wno-format -- 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

[Bug 619934] Re: gcc fails to compile completely valid code with -Wall -Werror

2010-08-18 Thread Michael B. Trausch
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