1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-16 18:13:49 +01:00

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.
This commit is contained in:
Martine Lenders 2018-07-19 18:44:29 +02:00
parent 5ea5904d41
commit ad133da209

View File

@ -265,6 +265,9 @@ int puts(const char *s)
return r; 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) char *make_message(const char *format, va_list argp)
{ {
int size = 100; int size = 100;