From: DRC Date: Thu, 22 Mar 2018 22:14:15 +0000 (-0500) Subject: jcphuff.c: Fix compiler warning with Visual C++ X-Git-Tag: 1.5.90~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8adf4c0a4f5be25230b9c270de81c11fcc9f9219;p=libjpeg-turbo jcphuff.c: Fix compiler warning with Visual C++ GCC doesn't seem to care if we pass no arguments to the ENCODE_COEFS* macros, but MSVC does. Insert a no-op to make it happy. --- diff --git a/jcphuff.c b/jcphuff.c index bcec852..b9a8de3 100644 --- a/jcphuff.c +++ b/jcphuff.c @@ -697,7 +697,7 @@ encode_mcu_AC_first(j_compress_ptr cinfo, JBLOCKROW *MCU_data) /* Encode the AC coefficients per section G.1.2.2, fig. G.3 */ - ENCODE_COEFS_AC_FIRST(); + ENCODE_COEFS_AC_FIRST((void)0;); #if SIZEOF_SIZE_T == 4 zerobits = bits[1]; @@ -960,7 +960,7 @@ encode_mcu_AC_refine(j_compress_ptr cinfo, JBLOCKROW *MCU_data) #else signbits = bits[2]; #endif - ENCODE_COEFS_AC_REFINE(); + ENCODE_COEFS_AC_REFINE((void)0;); #if SIZEOF_SIZE_T == 4 zerobits = bits[1];