Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [8ae7dc] Maximize Restore History

initialize_debugging: use const

Fix compiler warnings:
erreur.c:187:12: warning: initializing 'gchar *' (aka 'char *') with an expression of type 'const char [1]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
gchar *debug_level="";
^ ~~
erreur.c:203:40: warning: assigning to 'gchar *' (aka 'char *') from 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
case DEBUG_LEVEL_ALERT: { debug_level="Alert"; break; }
^~~~~~~~
erreur.c:204:44: warning: assigning to 'gchar *' (aka 'char *') from 'const char [10]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
case DEBUG_LEVEL_IMPORTANT: { debug_level="Important"; break; }
^~~~~~~~~~~~
erreur.c:205:41: warning: assigning to 'gchar *' (aka 'char *') from 'const char [7]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
case DEBUG_LEVEL_NOTICE: { debug_level="Notice"; break; }
^~~~~~~~~
erreur.c:206:39: warning: assigning to 'gchar *' (aka 'char *') from 'const char [5]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
case DEBUG_LEVEL_INFO: { debug_level="Info"; break; }
^~~~~~~
erreur.c:207:40: warning: assigning to 'gchar *' (aka 'char *') from 'const char [6]' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
case DEBUG_LEVEL_DEBUG: { debug_level="Debug"; break; }
^~~~~~~~

Ludovic Rousseau Ludovic Rousseau 2013-11-22

changed src
changed src/erreur.c
src
Directory.
src/erreur.c Diff Switch to side-by-side view
Loading...