1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

wmaker: Added 'const' attribute to local variables

A number of these variable are not meant to be modified, so we
show this to the compiler.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2013-06-16 17:57:51 +02:00
committed by Carlos R. Mafra
parent c9b816de75
commit a6410d61e5
4 changed files with 15 additions and 15 deletions

View File

@@ -263,9 +263,9 @@ typedef struct WObjDescriptor {
/* notifications */
#ifdef MAINFILE
#define NOTIFICATION(n) char *WN##n = #n
#define NOTIFICATION(n) const char WN##n [] = #n
#else
#define NOTIFICATION(n) extern char *WN##n
#define NOTIFICATION(n) extern const char WN##n []
#endif
NOTIFICATION(WindowAppearanceSettingsChanged);