This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: Add macros for diagnostic control, use for scanf %a tests


On Tue, 25 Nov 2014, Paul Eggert wrote:

> This sort of thing looks intrusive.  Instead, how about defining a macro
> 'C99_sscanf' that does the push and pop and commentary, and then simply
> replacing warned-about uses of sscanf with C99_scanf?  That'd be a lot easier
> to read, and it's more along the lines of Roland's original suggestion.

Again, it doesn't work to have the pragmas in the same macro as the code 
in which the diagnostics are suppressed; they need to be in separate 
macros for the suppression to be effective.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]