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
3779done3779done
3780 3780
3781check_cc <<EOF && enable pragma_deprecated3781check_cc <<EOF && enable pragma_deprecated
3782_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")3782void foo(void) { _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") }
3783_Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
3784EOF3783EOF
3785 3784
3786check_cc <<EOF && enable attribute_packed3785check_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