From dddcf90dda4296cb5b368a16851543a290453159 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 14 Jun 2019 13:23:16 +0100 Subject: [PATCH] =?UTF-8?q?gmacros:=20Only=20use=20deprecated=20attributes?= =?UTF-8?q?=20on=20enumerators=20with=20GCC=20=E2=89=A5=206.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The reference I found online which said they were supported by GCC ≥ 5.2 was obviously lying. The GCC 6.1.0 documentation says they’re supported: https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/Enumerator-Attributes.html. Signed-off-by: Philip Withnall --- glib/gmacros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/gmacros.h b/glib/gmacros.h index 629d14be8..a262aaf74 100644 --- a/glib/gmacros.h +++ b/glib/gmacros.h @@ -988,7 +988,7 @@ #endif #if !defined(GLIB_DISABLE_DEPRECATION_WARNINGS) && \ - (__GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ >= 2) || \ + (__GNUC__ > 6 || (__GNUC__ == 6 && __GNUC_MINOR__ >= 1) || \ __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 0)) #define GLIB_DEPRECATED_ENUMERATOR G_DEPRECATED #define GLIB_DEPRECATED_ENUMERATOR_FOR(f) G_DEPRECATED_FOR(f)