Browse Source

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.
tags/n2.1
Diego Biurrun 12 years ago
parent
commit
6da5b57da1
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      configure

+ 1
- 2
configure View File

@@ -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


Loading…
Cancel
Save