Yet Another Narrowing Warning to suppress.
authorGuy Harris <guy@alum.mit.edu>
Sat, 17 Feb 2018 19:36:52 +0000 (11:36 -0800)
committerGuy Harris <guy@alum.mit.edu>
Sat, 17 Feb 2018 19:37:23 +0000 (19:37 +0000)
Change-Id: I6ec0a04a0ad074849f447164270a7ff4851b698f
Reviewed-on: https://code.wireshark.org/review/25839
Reviewed-by: Guy Harris <guy@alum.mit.edu>
ws_diag_control.h

index e3ee28ed9c16144400a194657619f7afa9efc382..006794ee20c2c720acaed1e001bb20cf1ba76659 100644 (file)
@@ -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