diff options
author | wm4 <wm4@nowhere> | 2018-10-11 05:45:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:04 +0200 |
commit | 4a6b56fe5674be517f39f37d54602ada31d0da2c (patch) | |
tree | 8d76c0073a8fef52bb3609b5919505c653c786b5 /waftools/detections | |
parent | ff1f863bda4f06f176119daa1f1bce2a8c6ee81f (diff) | |
download | mpv-4a6b56fe5674be517f39f37d54602ada31d0da2c.tar.bz2 mpv-4a6b56fe5674be517f39f37d54602ada31d0da2c.tar.xz |
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.
Diffstat (limited to 'waftools/detections')
-rw-r--r-- | waftools/detections/compiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index 55fa6d7b16..5916475307 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -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", |