From f5fcc00997481fb8b2898fc579eae5bcbf930fae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20=27Flameeyes=27=20Petten=C3=B2?= Date: Fri, 7 Aug 2009 19:41:17 +0200 Subject: [PATCH] Ask gperf to use ANSI-C for generation. This avoids an '80s C prototype which caused a warning during our build. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 3d7c4d26..41d45a01 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 "};"}' < $< > $@ -- 2.39.5