diff options
Diffstat (limited to 'ws_diag_control.h')
-rw-r--r-- | ws_diag_control.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/ws_diag_control.h b/ws_diag_control.h index cc0e9eec25..be6df0353c 100644 --- a/ws_diag_control.h +++ b/ws_diag_control.h @@ -53,17 +53,7 @@ extern "C" { * gcc supports "-Wpedantic". */ # define DIAG_PRAGMA(x) DIAG_DO_PRAGMA(GCC diagnostic x) - /* - * DIAG_OFF generates - * - * #pragma GCC diagnostic push - * #pragma GCC diagnostic ignored "-Wpragmas" - * #pragma GCC diagnostic ignored "-Wx-aka-the-warning-in-question" - * - * Ignoring "-Wpragmas" lets us turn off diagnostics for clang warnings - * that might not be recognized by gcc. - */ -# define DIAG_OFF(x) DIAG_PRAGMA(push) DIAG_PRAGMA(ignored DIAG_JOINSTR(-W,pragmas)) DIAG_PRAGMA(ignored DIAG_JOINSTR(-W,x)) +# define DIAG_OFF(x) DIAG_PRAGMA(push) DIAG_PRAGMA(ignored DIAG_JOINSTR(-W,x)) # define DIAG_ON(x) DIAG_PRAGMA(pop) # endif #elif defined(__clang__) |