[LyX/master] LYX_BEGIN_MUTE_GCC_WARNING: disable for gcc <= 7

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Nov 4 16:40:34 UTC 2024


commit d86dbf6675ba6ad655a50164507eaf7020e0e494
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Mon Nov 4 17:20:20 2024 +0100

    LYX_BEGIN_MUTE_GCC_WARNING: disable for gcc <= 7
    
    I do not know until which version gcc has complained when trying to
    mute a warning that it does not support. Recent versions do not do
    that.
    
    For now let's just do gcc 7, the limit should be higher.
---
 src/support/mute_warning.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/support/mute_warning.h b/src/support/mute_warning.h
index cea574b7ab..867fafb3f3 100644
--- a/src/support/mute_warning.h
+++ b/src/support/mute_warning.h
@@ -13,7 +13,7 @@
 #ifndef LYX_MUTE_WARNING_H
 #define LYX_MUTE_WARNING_H
 
-#if defined(__GNUC__) && !defined(__clang__)
+#if defined(__GNUC__) && __GNUC__ > 7 && !defined(__clang__)
 /* This macro can be used to stipulate that a given GCC warning is not
  * relevant in a given block.
  *


More information about the lyx-cvs mailing list