Stefan Rompf:

Fix warnings of type:
proto.c:2219: warning: ISO C forbids conditional expr with only one void side


svn path=/trunk/; revision=15156
This commit is contained in:
Jörg Mayer 2005-07-30 16:15:23 +00:00
parent 54861853a8
commit 44cbbf1039
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ typedef struct _protocol protocol_t;
* @param expression expression to test in the assertion
*/
#define DISSECTOR_ASSERT(expression) \
((void) ((expression) ? 0 : \
((void) ((expression) ? (void)0 : \
__DISSECTOR_ASSERT (expression, __FILE__, __LINE__)))
/** Same as DISSECTOR_ASSERT(), but will throw DissectorError exception