[dia/wip/lantw/general-fix-non-literal-format-string-errors] general: fix non-literal format string errors
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/wip/lantw/general-fix-non-literal-format-string-errors] general: fix non-literal format string errors
- Date: Sun, 3 May 2020 08:19:25 +0000 (UTC)
commit bd90d9e35b99e4ddd53f7d996c631e1057780f0e
Author: Ting-Wei Lan <lantw src gnome org>
Date: Sun May 3 16:11:51 2020 +0800
general: fix non-literal format string errors
We have to explicitly mark the format string argument with G_GNUC_PRINTF
to notify Clang that it should not emit the errors here.
lib/dialib.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/lib/dialib.c b/lib/dialib.c
index a66807fa..56e6895f 100644
--- a/lib/dialib.c
+++ b/lib/dialib.c
@@ -36,6 +36,7 @@
#include "standard-path.h"
+G_GNUC_PRINTF(3, 0)
static void
stderr_message_internal (const char *title,
enum ShowAgainStyle showAgain,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]