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:
parent
5ea5904d41
commit
ad133da209
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user