From b973e43d0be8839990cc56d86e3ba575fd7efbb7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 14 Sep 2026 17:18:39 +0200 Subject: GPGRT_HAVE_PRAGMA_GCC_PUSH now also covers diagnostic push. * src/gpg-error.h.in: Redefine GPGRT_HAVE_PRAGMA_GCC_PUSH -- The old definition only covered push_option which is available since gcc 4.4 (released 2009). The new definition also covers the diagnostic push pragma which was introduced with 4.6 (released 2011). --- src/gpg-error.h.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in index a40f616..f4f06b3 100644 --- a/src/gpg-error.h.in +++ b/src/gpg-error.h.in @@ -259,9 +259,10 @@ typedef unsigned int gpg_error_t; # define GPGRT_HAVE_MACRO_FUNCTION 1 #endif -/* A macro defined if the pragma GCC push_options is available. */ +/* A macro defined if the "#pragma GCC push_option" and "#pragma GCC + * diagnostic push" options are available. */ #undef GPGRT_HAVE_PRAGMA_GCC_PUSH -#if _GPG_ERR_GCC_VERSION >= 40400 +#if _GPG_ERR_GCC_VERSION >= 40600 # define GPGRT_HAVE_PRAGMA_GCC_PUSH 1 #endif -- cgit