diff options
-rw-r--r-- | caputils/ws80211_utils.c | 3 | ||||
-rw-r--r-- | ws_diag_control.h | 12 |
2 files changed, 1 insertions, 14 deletions
diff --git a/caputils/ws80211_utils.c b/caputils/ws80211_utils.c index a8f23a7198..66e935fa87 100644 --- a/caputils/ws80211_utils.c +++ b/caputils/ws80211_utils.c @@ -727,8 +727,6 @@ out_err: return -1; } -/* Needed for NLA_PUT_STRING, which passes strlen as an int */ -DIAG_OFF(shorten-64-to-32) static int ws80211_create_on_demand_interface(const char *name) { int devidx, phyidx, err; @@ -767,7 +765,6 @@ nla_put_failure: fprintf(stderr, "building message failed\n"); return 2; } -DIAG_ON(shorten-64-to-32) int ws80211_set_freq(const char *name, int freq, int chan_type, int _U_ center_freq, int _U_ center_freq2) { 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__) |