Use (void) instead of () for functions without args (Thanks fernandotcl)
See also:
http://article.gmane.org/gmane.linux.kernel/1268792
The C compiler will handle (void) as "no arguments" and () as "variadic
function" (equivalent to (...)) which might lead to subtle errors, such
as the one which was fixed with commit 0ea64ae4
.
This commit is contained in:
@ -110,7 +110,7 @@ static char *get_string(const char *identifier) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void clear_stack() {
|
||||
static void clear_stack(void) {
|
||||
DLOG("clearing stack.\n");
|
||||
for (int c = 0; c < 10; c++) {
|
||||
if (stack[c].str != NULL)
|
||||
|
Reference in New Issue
Block a user