]> granicus.if.org Git - libjpeg-turbo/commitdiff
jcphuff.c: Fix compiler warning with Visual C++
authorDRC <information@libjpeg-turbo.org>
Thu, 22 Mar 2018 22:14:15 +0000 (17:14 -0500)
committerDRC <information@libjpeg-turbo.org>
Thu, 22 Mar 2018 22:14:15 +0000 (17:14 -0500)
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.

jcphuff.c

index bcec85236d365f4730e80a5964aee56415d643ed..b9a8de312c7a53310f0006692091f5531e98d67d 100644 (file)
--- 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];