From 86f2ff6ec027514d067fd6ec054b6b2fa7c3afe1 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 17 Feb 2018 11:36:52 -0800 Subject: [PATCH] Yet Another Narrowing Warning to suppress. Change-Id: I6ec0a04a0ad074849f447164270a7ff4851b698f Reviewed-on: https://code.wireshark.org/review/25839 Reviewed-by: Guy Harris --- ws_diag_control.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ws_diag_control.h b/ws_diag_control.h index e3ee28ed9c..006794ee20 100644 --- a/ws_diag_control.h +++ b/ws_diag_control.h @@ -91,8 +91,8 @@ extern "C" { #endif /* - * Suppress complaints about conversion of size_t to int and about - * signed vs. unsigned comparison. + * Suppress complaints about narrowing converstions and about signed vs. + * unsigned comparison. * * XXX - this is done solely to squelch complaints from code generated * by Flex, but newer versions of Flex might fix the code; can we @@ -104,11 +104,13 @@ extern "C" { * Suppress: * * warning C4018: signed/unsigned mismatch + * warning C4244: 'initializing' : conversion from '__int64' to 'int', possible loss of data * warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data */ #define DIAG_OFF_FLEX \ __pragma(warning(push)) \ __pragma(warning(disable:4018)) \ + __pragma(warning(disable:4244)) \ __pragma(warning(disable:4267)) #define DIAG_ON_FLEX __pragma(warning(pop)) #else