>From 7c38b9be0f0f25d2192b9ea7f846067dcff3f19f Mon Sep 17 00:00:00 2001 From: Pavel Reichl Date: Tue, 14 Oct 2014 18:02:47 +0100 Subject: [PATCH 4/5] TESTS: Add -std=gnu99 to cwrap tests CFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../../../../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 --- src/tests/cwrap/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/cwrap/Makefile.am b/src/tests/cwrap/Makefile.am index 34aec92c197a60c47067c72df9c8f3644e1a3c45..96b9a52435d9e80bea3ec132cc86c3e6abd0adf2 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. \ -- 1.9.3