From 940c94bc9a29165987cb9d3f71c4a4ec76e7a1fc Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Oct 20 2014 19:43:52 +0000 Subject: TESTS: Add -std=gnu99 to cwrap tests CFLAGS ../../../../src/tests/cwrap/../../../src/util/domain_info_utils.c: In function ‘subdomain_enumerates’: ../../../../src/tests/cwrap/../../../src/util/domain_info_utils.c:77:9: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i=0; parent->sd_enumerate[i]; i++) { ^ ../../../../src/tests/cwrap/../../../src/util/domain_info_utils.c:77:9: note: use option -std=c99 or -std=gnu99 to compile your code make[3]: *** [../../../src/util/server_tests-domain_info_utils.o] Error 1 Reviewed-by: Pavel Reichl --- diff --git a/src/tests/cwrap/Makefile.am b/src/tests/cwrap/Makefile.am index 34aec92..96b9a52 100644 --- a/src/tests/cwrap/Makefile.am +++ b/src/tests/cwrap/Makefile.am @@ -1,4 +1,5 @@ AM_CPPFLAGS = \ + -std=gnu99 \ -Wall \ -I$(top_srcdir)/src \ -I. \