[dovecot-cvs] dovecot/src/lib macros.h,1.9,1.10
cras at procontrol.fi
cras at procontrol.fi
Sat Jan 4 19:46:36 EET 2003
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv17796
Modified Files:
macros.h
Log Message:
If PEDANTIC is defined, don't use (void)(..) with STMT_START/END.
Index: macros.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib/macros.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- macros.h 27 Dec 2002 16:02:25 -0000 1.9
+++ macros.h 4 Jan 2003 17:46:34 -0000 1.10
@@ -71,7 +71,8 @@
For SunOS they will be wrapped within `if (1)' and `else (void) 0',
and otherwise within `do' and `while (0)'. */
#if !(defined (STMT_START) && defined (STMT_END))
-# if defined (__GNUC__) && !defined (__STRICT_ANSI__) && !defined (__cplusplus)
+# if defined (__GNUC__) && !defined (__cplusplus) && \
+ !defined (__STRICT_ANSI__) && !defined (PEDANTIC)
# define STMT_START (void)(
# define STMT_END )
# else
More information about the dovecot-cvs
mailing list