After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757910 - Allow compiling on at least gcc 4.4.7
Allow compiling on at least gcc 4.4.7
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
1.0.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-11-10 19:13 UTC by Glenn Washburn
Modified: 2015-11-13 16:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Disable certain pragmas if less than gcc 4.6 (1.82 KB, patch)
2015-11-10 19:13 UTC, Glenn Washburn
none Details | Review

Description Glenn Washburn 2015-11-10 19:13:58 UTC
Created attachment 315206 [details] [review]
Disable certain pragmas if less than gcc 4.6

When building with gcc 4.4.7, the compile fails because this version of gcc does not support having pragmas inside of function definitions.  The attached patch causes the pragmas to not be generated if less than gcc 4.6, which I believe is when this feature becomes supported.

Aside effect of this is that --enable-more-warnings=error will cause the build to fail, because the effect of the pragma is generally to disable certain warnings.