Blame SOURCES/0008-TESTS-Add-std-gnu99-to-cwrap-tests-CFLAGS.patch

905b4d
From b4c6efddae7159a08ece5b2d94aabf7a629c0455 Mon Sep 17 00:00:00 2001
905b4d
From: Pavel Reichl <preichl@redhat.com>
905b4d
Date: Tue, 14 Oct 2014 18:02:47 +0100
905b4d
Subject: [PATCH 08/22] TESTS: Add -std=gnu99 to cwrap tests CFLAGS
905b4d
MIME-Version: 1.0
905b4d
Content-Type: text/plain; charset=UTF-8
905b4d
Content-Transfer-Encoding: 8bit
905b4d
905b4d
../../../../src/tests/cwrap/../../../src/util/domain_info_utils.c: In function ‘subdomain_enumerates’:
905b4d
../../../../src/tests/cwrap/../../../src/util/domain_info_utils.c:77:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
905b4d
         for (int i=0; parent->sd_enumerate[i]; i++) {
905b4d
         ^
905b4d
../../../../src/tests/cwrap/../../../src/util/domain_info_utils.c:77:9: note: use option -std=c99 or -std=gnu99 to compile your code
905b4d
make[3]: *** [../../../src/util/server_tests-domain_info_utils.o] Error 1
905b4d
905b4d
Reviewed-by: Pavel Reichl <preichl@redhat.com>
905b4d
---
905b4d
 src/tests/cwrap/Makefile.am | 1 +
905b4d
 1 file changed, 1 insertion(+)
905b4d
905b4d
diff --git a/src/tests/cwrap/Makefile.am b/src/tests/cwrap/Makefile.am
905b4d
index 34aec92c197a60c47067c72df9c8f3644e1a3c45..96b9a52435d9e80bea3ec132cc86c3e6abd0adf2 100644
905b4d
--- a/src/tests/cwrap/Makefile.am
905b4d
+++ b/src/tests/cwrap/Makefile.am
905b4d
@@ -1,4 +1,5 @@
905b4d
 AM_CPPFLAGS = \
905b4d
+    -std=gnu99 \
905b4d
     -Wall \
905b4d
     -I$(top_srcdir)/src \
905b4d
     -I. \
905b4d
-- 
905b4d
1.9.3
905b4d