GNOME Bugzilla – Bug 790877
fix non-portable check in G_GNUC_CHECK_VERSION
Last modified: 2017-11-27 10:08:10 UTC
A few years back in bug 728099 I added G_GNUC_CHECK_VERSION(). That now warns with recent GCC versions about possibly non-portable use of defined() in a macro expansion. We can fix this fairly easily.
Created attachment 364467 [details] [review] macros: make G_GNUC_CHECK_VERSION() portable This removes the use of defined() in a macro expansion, which may not be portable to some pre-processors. Instead, we hoist the defined check outside the macro expansion.
Review of attachment 364467 [details] [review]: Good hoisting. ++
Thanks for the prompt review! Attachment 364467 [details] pushed as d44afba - macros: make G_GNUC_CHECK_VERSION() portable