Skip to content

Commit

Permalink
Ignore nonliteral compiler warning on debug vfprintf.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Feb 2, 2014
1 parent 62773a5 commit fc72bd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions error.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

static FILE *log_file;

#pragma GCC diagnostic ignored "-Wformat-nonliteral"
void
error_handler (const char *func, const char *file, int line, const char *msg,
...)
Expand All @@ -60,6 +61,8 @@ error_handler (const char *func, const char *file, int line, const char *msg,
exit (EXIT_FAILURE);
}

#pragma GCC diagnostic warning "-Wformat-nonliteral"

void
dbg_log_open (const char *path)
{
Expand Down

0 comments on commit fc72bd2

Please sign in to comment.