This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Le 21/10/2015 19:34, Martin Sebor a écrit :
On 10/16/2015 08:40 AM, Olivier Blin wrote:Hello, In gcc versions starting from 4.8, it seems that printf format warnings in macros are inconsistent, depending on whether the header defining the macro is included as a system header or not, and on the build mode (C or C++). With gcc < 4.8 (tried gcc 4.6.3 and 4.7.2), there are printf format warnings for both C and C++ languages, when the macro is in a system header or not. With gcc >= 4.8 (tried 4.8.2 and 5.2.1 snapshot), there are no printf format warnings when the build mode is C++ *and* when the macro is in a system header. If the build mode is C or if the macro is in a non-system header, the printf format warnings are emitted.I'm inclined to say it's a bug. I recommend opening it in Bugzilla.
Hello Martin, Thanks for your answser and details. I have opened a bug in bugzilla: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68052 It would probably be useful to add your comments in there. Cheers -- Olivier Blin - SoftAtHome
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |