From 6da5b57da11bbbece47bec2885100353a6cfa280 Mon Sep 17 00:00:00 2001
From: Diego Biurrun <diego@biurrun.de>
Date: Fri, 2 Aug 2013 22:03:09 +0200
Subject: [PATCH] configure: Check for GCC diagnostic pragma support inside of
 functions

The actual usage of the pragma is within functions and older versions
of gcc only support the pragma outside of functions.
---
 configure | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/configure b/configure
index 979cc600c36..dadc4ba1421 100755
--- a/configure
+++ b/configure
@@ -3395,8 +3395,7 @@ EOF
 done
 
 check_cc <<EOF && enable pragma_deprecated
-_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
-_Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
+void foo(void) { _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") }
 EOF
 
 check_cc <<EOF && enable attribute_packed
-- 
GitLab