This is the mail archive of the gcc@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]

Re: Suppressing specific compiler warnings


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


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