test: use -std=c89 instead of c90 for the build test
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 9 Feb 2015 02:54:36 +0000 (12:54 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 9 Feb 2015 02:54:36 +0000 (12:54 +1000)
They're identical, but RHEL6 doesn't support -std=c90

https://gcc.gnu.org/onlinedocs/gcc/Standards.html
https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html#C-Dialect-Options

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/Makefile.am

index 5141369..ab4752e 100644 (file)
@@ -5,7 +5,7 @@ AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/libevdev
 AM_LDFLAGS =
 
 test_compile_pedantic_SOURCES = test-compile-pedantic.c
-test_compile_pedantic_CFLAGS = $(AM_CPPFLAGS) -pedantic -Werror -std=c90
+test_compile_pedantic_CFLAGS = $(AM_CPPFLAGS) -pedantic -Werror -std=c89
 
 test_link_SOURCES = test-link.c
 test_link_CFLAGS = -I$(top_srcdir)