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:
committed by
Carlos R. Mafra
parent
c9b816de75
commit
a6410d61e5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user