X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;fp=src%2Fcommon%2Fmacros.h;h=3e175735083a9df7d390cdad5cc5fa43a20c4c26;hp=43a4d692b80fbad0a5a42f03f2ceffc3450c63a1;hb=942003e52b8fe43bfb8f28a1884d3bda7e6d1e0b;hpb=ce7fc42f24c2c9a62a5eeb77f248d27a5cb4de4b diff --git a/src/common/macros.h b/src/common/macros.h index 43a4d692b..3e1757350 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -94,12 +94,15 @@ void *zmalloc(size_t len) # define DIAGNOSTIC_IGNORE_SUGGEST_ATTRIBUTE_FORMAT # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \ _Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\"") +# define DIAGNOSTIC_IGNORE_LOGICAL_OP #else /* GCC */ # define DIAGNOSTIC_IGNORE_SUGGEST_ATTRIBUTE_FORMAT \ _Pragma("GCC diagnostic ignored \"-Wsuggest-attribute=format\"") # define DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL \ _Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\"") +# define DIAGNOSTIC_IGNORE_LOGICAL_OP \ + _Pragma("GCC diagnostic ignored \"-Wlogical-op\"") #endif /* Used to make specific C++ functions to C code. */