From ad133da2096c44e001ee65071cb36db60a54e215 Mon Sep 17 00:00:00 2001
From: Martine Lenders <mail@martine-lenders.eu>
Date: Thu, 19 Jul 2018 18:44:29 +0200
Subject: [PATCH] native: ignore -Wformat-nonliteral for formatting syscalls

The point of that call is to wrap the actual host system's formatting
functions, so the non-literal formatting string is alright here.
---
 cpu/native/syscalls.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpu/native/syscalls.c b/cpu/native/syscalls.c
index 3ec388180d..d0a3b423b8 100644
--- a/cpu/native/syscalls.c
+++ b/cpu/native/syscalls.c
@@ -265,6 +265,9 @@ int puts(const char *s)
     return r;
 }
 
+/* Solve 'format string is not a string literal' as it is validly used in this
+ * function */
+__attribute__((__format__ (__printf__, 1, 0)))
 char *make_message(const char *format, va_list argp)
 {
     int size = 100;
-- 
GitLab