X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmacros.hpp;h=42f7a94d14648a35c6f84a1843fcb1db2de624c0;hp=a4ff6504d078807056330c4fd8f3e25b3a05f2ad;hb=05aa7e19ec97871aad18d7c9787c4c89611cd2cd;hpb=b3647fb885288c63d21478ea9a9c85685bc5c5f2 diff --git a/src/common/macros.hpp b/src/common/macros.hpp index a4ff6504d..42f7a94d1 100644 --- a/src/common/macros.hpp +++ b/src/common/macros.hpp @@ -271,6 +271,7 @@ void *memmove(T *d, const U *s, size_t n) = delete; # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \ _Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\"") # define DIAGNOSTIC_IGNORE_LOGICAL_OP +# define DIAGNOSTIC_IGNORE_DUPLICATED_BRANCHES #else /* GCC */ # define DIAGNOSTIC_IGNORE_SUGGEST_ATTRIBUTE_FORMAT \ @@ -279,6 +280,8 @@ void *memmove(T *d, const U *s, size_t n) = delete; _Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\"") # define DIAGNOSTIC_IGNORE_LOGICAL_OP \ _Pragma("GCC diagnostic ignored \"-Wlogical-op\"") +# define DIAGNOSTIC_IGNORE_DUPLICATED_BRANCHES \ + _Pragma("GCC diagnostic ignored \"-Wduplicated-branches\"") #endif /* Used to make specific C++ functions to C code. */