diff options
author | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2009-08-07 19:41:17 +0200 |
---|---|---|
committer | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2009-08-07 19:41:17 +0200 |
commit | f5fcc00997481fb8b2898fc579eae5bcbf930fae (patch) | |
tree | a90dc022eaa17bbdaadd407a0a78d473db80c7e3 | |
parent | 1199a948e49758d067f33ed6ec6096c2edd9c25e (diff) |
Ask gperf to use ANSI-C for generation.
This avoids an '80s C prototype which caused a warning during our build.
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 3d7c4d2618..41d45a0127 100644 --- a/Makefile.am +++ b/Makefile.am @@ -492,7 +492,7 @@ extras/keymap/keys-from-name.gperf: extras/keymap/keys.txt $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@ extras/keymap/keys-from-name.h: extras/keymap/keys-from-name.gperf Makefile - $(AM_V_GEN)$(GPERF) -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@ + $(AM_V_GEN)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@ extras/keymap/keys-to-name.h: extras/keymap/keys.txt Makefile $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ |