The third operand of the conditional operator should have type void too.
Approved by: das (mentor)
This commit is contained in:
parent
89b27dc636
commit
76718df136
@ -1273,7 +1273,7 @@ __find_arguments (const char *fmt0, va_list ap, union arg **argtable)
|
||||
*/
|
||||
#define ADDTYPE(type) \
|
||||
((nextarg >= tablesize) ? \
|
||||
__grow_type_table(nextarg, &typetable, &tablesize) : 0, \
|
||||
__grow_type_table(nextarg, &typetable, &tablesize) : (void)0, \
|
||||
(nextarg > tablemax) ? tablemax = nextarg : 0, \
|
||||
typetable[nextarg++] = type)
|
||||
|
||||
|
@ -1268,7 +1268,7 @@ __find_arguments (const wchar_t *fmt0, va_list ap, union arg **argtable)
|
||||
*/
|
||||
#define ADDTYPE(type) \
|
||||
((nextarg >= tablesize) ? \
|
||||
__grow_type_table(nextarg, &typetable, &tablesize) : 0, \
|
||||
__grow_type_table(nextarg, &typetable, &tablesize) : (void)0, \
|
||||
(nextarg > tablemax) ? tablemax = nextarg : 0, \
|
||||
typetable[nextarg++] = type)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user