log: fix gcc warnings
This commit is contained in:
parent
b233afaaa6
commit
ad08ddcd7b
1 changed files with 7 additions and 0 deletions
|
@ -240,7 +240,14 @@ static void log_dispatch(LogEntry *entry) {
|
|||
if(l->levels & entry->level) {
|
||||
if(!init) {
|
||||
modname(entry->file, strlen(entry->file), mbuf);
|
||||
|
||||
DIAGNOSTIC_GCC(push)
|
||||
DIAGNOSTIC_GCC(ignored "-Wpragmas")
|
||||
DIAGNOSTIC_GCC(ignored "-Wdangling-pointer")
|
||||
// The formatter is not expected to leak this out of the the stack frame.
|
||||
entry->module = mbuf;
|
||||
DIAGNOSTIC_GCC(pop)
|
||||
|
||||
filter_lvlmask = filter_entry(entry);
|
||||
init = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue