build: silence idiotic -Wformat-truncation

This warns about player/audio.c:253 with gcc 8.2.0. Although this
warning could be useful to check the worst case estimation, the compiler
doesn't explain how it gets its dumb, bogus result, so this is useless.
You'd just end up trying to make the compiler happy for no reason.
This commit is contained in:
wm4 2018-10-11 05:45:47 +02:00
parent ff1f863bda
commit 4a6b56fe56
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ def __add_generic_flags__(ctx):
"-Wno-format-zero-length",
"-Werror=format-security",
"-Wno-redundant-decls",
"-Wvla"])
"-Wvla",
"-Wno-format-truncation"])
def __add_gcc_flags__(ctx):
ctx.env.CFLAGS += ["-Wall", "-Wundef", "-Wmissing-prototypes", "-Wshadow",