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.
This commit is contained in:
Jean-Marc Lasgouttes 2024-11-04 17:20:20 +01:00
parent 159e8f2dde
commit d86dbf6675

View File

@ -13,7 +13,7 @@
#ifndef LYX_MUTE_WARNING_H #ifndef LYX_MUTE_WARNING_H
#define 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 /* This macro can be used to stipulate that a given GCC warning is not
* relevant in a given block. * relevant in a given block.
* *