Bug 615569 warning: statement with no effect for each png_warning/png_chunk_warning
authortimeless@mozdev.org
Sat, 04 Dec 2010 11:06:30 +0100
changeset 58604 5fcca6b353eeff755918ccb78e8597cceaba1949
parent 58603 1b37f953b5e44e4e390facbbf16c6ca35635bf7a
child 58605 ba11bdfe7034d16cdf3e8097694ee30b1578bbd1
push idunknown
push userunknown
push dateunknown
bugs615569
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 615569 warning: statement with no effect for each png_warning/png_chunk_warning r=glennrp
modules/libimg/png/mozpngconf.h
--- a/modules/libimg/png/mozpngconf.h
+++ b/modules/libimg/png/mozpngconf.h
@@ -507,18 +507,18 @@
 #define png_set_first_frame_is_hidden   MOZ_APNG_set_first_frame_is_hidden
 #define png_write_acTL                  MOZ_APNG_write_acTL
 #define png_write_reset                 MOZ_APNG_write_reset
 #define png_write_reinit                MOZ_APNG_write_reinit
 #define png_write_fcTL                  MOZ_APNG_write_fcTL
 #define png_read_frame_head             MOZ_APNG_read_frame_head
 
 #ifndef PR_LOGGING
-  #define MOZ_PNG_warning(s1,s2) ""
-  #define MOZ_PNG_chunk_warn(s1,s2) ""
+  #define MOZ_PNG_warning(s1,s2) (void)0
+  #define MOZ_PNG_chunk_warn(s1,s2) (void)0
   #if PNG_LIBPNG_VER > 10221
     #define PNG_NO_WARNINGS
     #define PNG_NO_ERROR_TEXT
     #define MOZ_PNG_error(s1,s2) MOZ_PNG_err(s1)
     #define MOZ_PNG_chunk_err(s1,s2) MOZ_PNG_err(s1)
   #endif
 #endif