-Wformat and -fexec-charset

John P. Hartmann jphartmann@gmail.com
Sun Jun 26 19:15:00 GMT 2011


Not a bug, but it would be nice if the documentation could be amended
to indicate that if the character set specified by -fexec-charset is
different from the compiler's default character set, e.g., if it is an
EBCDIC codepage, -Wformat will usually indicate too many parameters
for the format as the compiler scans for % which in my case is changed
to l by the preprocessor.  As the fexec-charset option is a
preprocessor option, it would no doubt be difficult to translate the
string back in the compiler proper (but it would be nice if it could
be).



More information about the Gcc-help mailing list