summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-05-22 03:37:14 +0100
committerJoão Valverde <j@v6e.pt>2016-05-22 04:55:34 +0000
commit77fd31e60a527899dfc7998f851bb8f4ab10b82b (patch)
tree3a8e7e1fe4ac3a350d6983b64f1e1668973c3f95
parent1f9a2dc886ff5f8dbd6872fed5165d8a0ba20e39 (diff)
downloadwireshark-77fd31e60a527899dfc7998f851bb8f4ab10b82b.tar.gz
Revert "ws80211: Disable shorten-64-to-32."
This reverts commit b8f90de70efa2d271274fbb48df12737f6eddd12. Change-Id: Ic7eaf288d1937a986c2ec85ba43a94ac20b6e12e Reviewed-on: https://code.wireshark.org/review/15520 Reviewed-by: João Valverde <j@v6e.pt>
-rw-r--r--caputils/ws80211_utils.c3
-rw-r--r--ws_diag_control.h12
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__)