From 12f84706a9f1991ab5138e2be3e74a2b61428a58 Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Fri, 20 May 2016 18:54:08 -0400 Subject: [PATCH] Ignore format-nonliteral error in newer GCC This is less than ideal but we can assert that the format string is safe as they are literals in hexchat-formats.c --- src/otr_util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/otr_util.c b/src/otr_util.c index 4d9c3cc..206fa0c 100644 --- a/src/otr_util.c +++ b/src/otr_util.c @@ -107,8 +107,11 @@ static void context_add_app_info (void *data, ConnContext *co) co->app_data_free = context_free_app_info; coi->ircctx = ircctx; + +#pragma GCC diagnostic ignored "-Wformat-nonliteral" g_snprintf (coi->better_msg_two, sizeof(coi->better_msg_two), formats[TXT_OTR_BETTER_TWO].def, co->accountname); +#pragma GCC diagnostic pop } /*