GNOME Bugzilla – Bug 757910
Allow compiling on at least gcc 4.4.7
Last modified: 2015-11-13 16:26: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.
Merged a modified version: master: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=6263703286b67795ddee770b86445c57cf71cc81 nm-1-0: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=6a9d8c7fa456f267daca50bc3d754922ff839a86 Thanks