Skip to content

Suppress false deprecation warnings on GCC <4.6

Evan Miller requested to merge evanmiller/glib:gcc-suppress-deprecations into main

Address #2472 (closed) by suppressing deprecation attributes if the compiler is unable to ignore them via G_GNUC_BEGIN_IGNORE_DEPRECATIONS. This logic is applied only to the GLIB_* macros so as to prevent warnings when including <glib.h>. The behavior of the end-user G_DEPRECATED macro is unchanged.

Merge request reports