makekeys: mark keysym_names as static
authorRan Benita <ran234@gmail.com>
Fri, 10 Jan 2014 22:26:58 +0000 (00:26 +0200)
committerRan Benita <ran234@gmail.com>
Fri, 10 Jan 2014 22:26:58 +0000 (00:26 +0200)
Signed-off-by: Ran Benita <ran234@gmail.com>
makekeys.py
src/ks_tables.h

index 1939912..4732f8d 100644 (file)
@@ -19,7 +19,7 @@ entry_offsets = {}
 print('''
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Woverlength-strings"
-const char *keysym_names =
+static const char *keysym_names =
 '''.strip())
 offs = 0
 for (name, _) in sorted(entries, key=lambda e: e[0].lower()):
index 2955f8d..1010b69 100644 (file)
@@ -7,7 +7,7 @@
 
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Woverlength-strings"
-const char *keysym_names =
+static const char *keysym_names =
     "0\0"
     "1\0"
     "2\0"