[syslinux:master] zlib: use (void(0)) instead of empty #defines
syslinux-bot for Patrick Masotta
masottaus at yahoo.com
Sun Sep 13 05:45:02 PDT 2015
Commit-ID: 02f3609a95e3f8c123891faa89fc39eab8d85ede
Gitweb: http://www.syslinux.org/commit/02f3609a95e3f8c123891faa89fc39eab8d85ede
Author: Patrick Masotta <masottaus at yahoo.com>
AuthorDate: Sun, 13 Sep 2015 08:42:14 -0400
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sun, 13 Sep 2015 08:42:16 -0400
zlib: use (void(0)) instead of empty #defines
Originally-By: Patrick Masotta <masottaus at yahoo.com>
[Use (void(0)) instead of a dummy function - gene.cumm at gmail.com]
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
---
com32/lib/zlib/zutil.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/com32/lib/zlib/zutil.h b/com32/lib/zlib/zutil.h
index ac2d73e..ed6bd83 100644
--- a/com32/lib/zlib/zutil.h
+++ b/com32/lib/zlib/zutil.h
@@ -253,12 +253,12 @@ extern const char * const z_errmsg[10]; /* indexed by 2-zlib_error */
# define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;}
# define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;}
#else
-# define Assert(cond,msg)
-# define Trace(x)
-# define Tracev(x)
-# define Tracevv(x)
-# define Tracec(c,x)
-# define Tracecv(c,x)
+# define Assert(cond,msg) ((void)0)
+# define Trace(x) ((void)0)
+# define Tracev(x) ((void)0)
+# define Tracevv(x) ((void)0)
+# define Tracec(c,x) ((void)0)
+# define Tracecv(c,x) ((void)0)
#endif
More information about the Syslinux-commits
mailing list