This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: report valid values for all errors for enum variables...


Presumably only the line:

fprintf_unfiltered (tmp_error_stream, c->enums[i]);

since that is the only fprintf with a non-string literal format string. If I change this one, I get no warnings with -Wformat-nonliteral.

Jim

On Oct 28, 2003, at 7:13 AM, Andrew Cagney wrote:

Sure, how 'bout:

Yep! But you'll need to switch some of the fprintf_unfiltered's to fputs_unfiltered before committing. Otherwize the build will barf due to -Wformat-nonliteral warnings.


thanks,
Andrew



--
Jim Ingham                                   jingham@apple.com
Developer Tools
Apple Computer


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