Suppressing specific compiler warnings

Steven Bosscher stevenb@suse.de
Thu May 27 06:45:00 GMT 2004


On Thursday 27 May 2004 06:52, Banibrata Dutta wrote:
> 2) The way numbers help internationalization is that you could have
> something like:
>
> wchar*  warning_message[MAX_LANGS][MAX_WARNINGS];
>
> populated with something like...
>
> warning_message[LANG_EN][UNUSED_VAR]       = "Unused variable";
> warning_message[LANG_FR][UNUSED_VAR]       = "Variable inutilisée";
> ..
> warning_message[LANG_EN][STMT_NOT_REACHED] = "Statement not reached";
> warning_message[LANG_FR][STMT_NOT_REACHED] = "Rapport non atteint";
> ..

GCC Already already has internationalization, and I have to say,
in a far more elegant way than the above.

Gr.
Steven



More information about the Gcc mailing list