Skip to content

Commit 50fec8e

Browse files
committed
rely on gcc version
1 parent 0850bef commit 50fec8e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/settings.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,12 @@ class SimpleEnableGroup {
9494
};
9595

9696

97-
#ifdef GCC_BUG_HACK_NOEXCEPT
97+
#if defined(__GNUC__) && __GNUC__ <= 9
98+
// Hack to workaround GCC bug.
99+
// Details: https://trac.cppcheck.net/ticket/14850
100+
// seen on:
101+
// oraclelinux:8, g++-8.5
102+
// ubuntu:20.04, g++-9.4.0
98103
#define NOEXCEPT
99104
#else
100105
#define NOEXCEPT noexcept

0 commit comments

Comments
 (0)