Skip to content

Commit

Permalink
Fix format error on some compilers
Browse files Browse the repository at this point in the history
Some seem to count the pragma as the code line

Closes #24
  • Loading branch information
TingPing committed Apr 13, 2017
1 parent 41fb576 commit 2ef419e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hexchat_otr.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ void printformat (IRC_CTX *ircctx, const char *nick, int lvl, int fnum, ...)

#pragma GCC diagnostic ignored "-Wformat-nonliteral"
if (g_vsnprintf (msg, sizeof(msg), formats[fnum].def, params) < 0)
#pragma GCC diagnostic pop
g_snprintf (msg, sizeof(msg), "internal error parsing error string (BUG)");
#pragma GCC diagnostic pop
va_end (params);
hexchat_printf (ph, "OTR: %s", s);
}
Expand Down

0 comments on commit 2ef419e

Please sign in to comment.