aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-02-19 16:05:49 -0800
committerGerald Combs <gerald@wireshark.org>2015-02-20 04:04:15 +0000
commit95382c3afb9d50ffc7c0d178dbe9d76c763d687c (patch)
treeeee8a98844328b7ed7bc84b9156bcf3949d97903 /randpkt.c
parent9423a13b2db427d15f6b3d11b73624fffc02608f (diff)
Suppress a bunch of cast-qual warnings.
Squelch warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] similar to g630f54f. Change strtod to g_ascii_strtod to squelch a checkAPIs error. Change-Id: Ib2d26ef89f08827a5adc07e35eaf876cd7b8d14e Reviewed-on: https://code.wireshark.org/review/7269 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/randpkt.c b/randpkt.c
index 9ddfd78..bf391be 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -48,6 +48,7 @@
#include <glib.h>
#include "wiretap/wtap.h"
#include "wsutil/file_util.h"
+#include <wsutil/ws_diag_control.h>
#ifdef _WIN32
#include <wsutil/unicode-utils.h>
@@ -512,10 +513,12 @@ main(int argc, char **argv)
char *produce_filename = NULL;
int produce_max_bytes = 5000;
pkt_example *example;
+DIAG_OFF(cast-qual)
static const struct option long_options[] = {
{(char *)"help", no_argument, NULL, 'h'},
{0, 0, 0, 0 }
};
+DIAG_ON(cast-qual)
#ifdef _WIN32
arg_list_utf_16to8(argc, argv);