Skip to content

Commit

Permalink
Merge pull request #9661 from miri64/native/fix/non-literal-syscall
Browse files Browse the repository at this point in the history
native: ignore -Wformat-nonliteral for formatting syscalls
  • Loading branch information
miri64 committed Aug 1, 2018
2 parents d6ec8e0 + ad133da commit e57ae7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpu/native/syscalls.c
Expand Up @@ -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;
Expand Down

0 comments on commit e57ae7d

Please sign in to comment.