mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Fixing a bunch of format strings.
Also leveraging GCC if available to check format specificier. Closes #567.
This commit is contained in:
parent
d86525ce61
commit
63b46a0ae2
14 changed files with 38 additions and 31 deletions
|
@ -1593,7 +1593,7 @@ resolve_id:
|
|||
$$ = lookup_ID($1, current_module.c_str());
|
||||
|
||||
if ( ! $$ )
|
||||
reporter->Error("identifier not defined:", $1);
|
||||
reporter->Error("identifier not defined: %s", $1);
|
||||
|
||||
delete [] $1;
|
||||
}
|
||||
|
@ -1650,7 +1650,7 @@ int yyerror(const char msg[])
|
|||
strcat(msgbuf, "\nDocumentation mode is enabled: "
|
||||
"remember to check syntax of ## style comments\n");
|
||||
|
||||
reporter->Error(msgbuf);
|
||||
reporter->Error("%s", msgbuf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue