GNOME Bugzilla – Bug 780675
gcc pragma build failure
Last modified: 2017-04-10 18:49:27 UTC
fixes build for newer gcc, but it breaks build for older gcc:
eog-exif-util.c: In function 'eog_exif_util_format_date_with_strptime':
eog-exif-util.c:121:9: error: #pragma GCC diagnostic not allowed inside functions
eog-exif-util.c:122:9: error: #pragma GCC diagnostic not allowed inside functions
eog-exif-util.c:125:9: error: #pragma GCC diagnostic not allowed inside functions
Created attachment 348949 [details] [review]
I don't have an old enough GCC at hand, could you test if that fixes it for you?
Pushed with 3.24.1.
Author: Felix Riemann <>
Date: Wed Mar 29 20:56:11 2017 +0200
EogExifUtil: Fix build with older GCCs
Older GCCs don't support pragma diagnostic in functions.
Move the pragmas outside to fix the build with these compilers.
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.