79dacd0
From 65e3a2cf7c3b399853dd309f702ca5078b7d16ea Mon Sep 17 00:00:00 2001
79dacd0
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
79dacd0
Date: Thu, 9 Oct 2014 22:30:45 -0500
79dacd0
Subject: [PATCH] build-sys: use -Wno-gnu-variable-sized-type-not-at-end under
79dacd0
 clang
79dacd0
79dacd0
Otherwise we get useless warnings about journal code.
79dacd0
---
79dacd0
 configure.ac | 4 +++-
79dacd0
 1 file changed, 3 insertions(+), 1 deletion(-)
79dacd0
79dacd0
diff --git a/configure.ac b/configure.ac
79dacd0
index d04f6f464f..945adfcbee 100644
79dacd0
--- a/configure.ac
79dacd0
+++ b/configure.ac
79dacd0
@@ -200,7 +200,9 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
79dacd0
 
79dacd0
 AS_CASE([$CC], [*clang*],
79dacd0
         [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
79dacd0
-               -Wno-typedef-redefinition])])
79dacd0
+               -Wno-typedef-redefinition \
79dacd0
+               -Wno-gnu-variable-sized-type-not-at-end \
79dacd0
+        ])])
79dacd0
 
79dacd0
 AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
79dacd0
         [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\