Skip to content

Commit

Permalink
Remove unneeded pragma directives
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Sep 18, 2024
1 parent f57daaa commit 8e355c3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,7 @@ void janus_vprintf(const char *format, ...) {
va_list ap;
va_start(ap, format);
char *str = NULL;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
int len = g_vasprintf(&str, format, ap);
#pragma GCC diagnostic pop
va_end(ap);
if(len < 0 || str == NULL)
return;
Expand Down

0 comments on commit 8e355c3

Please sign in to comment.