History

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.

Diego Biurrun committed 13 years ago

Commit 038c4f61 parent 85fc1a11 file · +1 −2Browse files

Unified · Split

configure+1−2
@@ -3779,8 +3779,7 @@ EOF · 3778 unmodified lines
37793779 done
37803780
37813781 check_cc <<EOF && enable pragma_deprecated
3782−_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
3783−_Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
3782+void foo(void) { _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") }
37843783 EOF
37853784
37863785 check_cc <<EOF && enable attribute_packed

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t