diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-02-19 16:05:49 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-02-20 04:04:15 +0000 |
commit | 95382c3afb9d50ffc7c0d178dbe9d76c763d687c (patch) | |
tree | eee8a98844328b7ed7bc84b9156bcf3949d97903 /text2pcap.c | |
parent | 9423a13b2db427d15f6b3d11b73624fffc02608f (diff) | |
download | wireshark-95382c3afb9d50ffc7c0d178dbe9d76c763d687c.tar.gz wireshark-95382c3afb9d50ffc7c0d178dbe9d76c763d687c.tar.bz2 wireshark-95382c3afb9d50ffc7c0d178dbe9d76c763d687c.zip |
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 'text2pcap.c')
-rw-r--r-- | text2pcap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/text2pcap.c b/text2pcap.c index 3f22c0c397..bd41e2acff 100644 --- a/text2pcap.c +++ b/text2pcap.c @@ -112,6 +112,7 @@ #include <string.h> #include <wsutil/file_util.h> #include <wsutil/crash_info.h> +#include <wsutil/ws_diag_control.h> #include <wsutil/ws_version_info.h> #include <time.h> @@ -1534,11 +1535,13 @@ parse_options (int argc, char *argv[]) GString *runtime_info_str; int c; char *p; +DIAG_OFF(cast-qual) static const struct option long_options[] = { {(char *)"help", no_argument, NULL, 'h'}, {(char *)"version", no_argument, NULL, 'v'}, {0, 0, 0, 0 } }; +DIAG_ON(cast-qual) #ifdef _WIN32 arg_list_utf_16to8(argc, argv); |