summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-03 09:27:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-03 09:27:37 +0200
commit85fc1a18ca7b875cf138d3a862779f8334fb2a57 (patch)
tree94c708fb32da8f3dd9402e162124cefcbd1483a0 /configure
parentfa5410f61a75393d8019200ea8ef6a293ab050a1 (diff)
parent3a7050ffed5ce061b114a11e4de4b77aba8efa0b (diff)
Merge commit '3a7050ffed5ce061b114a11e4de4b77aba8efa0b'
* commit '3a7050ffed5ce061b114a11e4de4b77aba8efa0b': build: Add _Pragma macro to disable deprecated declaration warnings Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index f1ba054a03..5bfd8e670a 100755
--- a/configure
+++ b/configure
@@ -1497,6 +1497,7 @@ HAVE_LIST="
pod2man
poll_h
posix_memalign
+ pragma_deprecated
pthread_cancel
rdtsc
rsync_contimeout
@@ -3777,6 +3778,11 @@ void foo(char * $restrict_keyword p);
EOF
done
+check_cc <<EOF && enable pragma_deprecated
+_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
+_Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
+EOF
+
check_cc <<EOF && enable attribute_packed
struct { int x; } __attribute__((packed)) x;
EOF