https://bugs.freedesktop.org/show_bug.cgi?id=108082
Bug ID: 108082
Summary: warning: unknown warning option
'-Wno-format-truncation' [-Wunknown-warning-option]
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: All
Status: NEW
Keywords: bisected, regression
Severity: normal
Priority: medium
Component: Other
Assignee: mesa-dev@lists.freedesktop.org
Reporter: v...@freedesktop.org
QA Contact: mesa-dev@lists.freedesktop.org
CC: emil.l.veli...@gmail.com, fdo-b...@engestrom.ch
These warning messages are appearing with clang.
warning: unknown warning option '-Wno-format-truncation'
[-Wunknown-warning-option]
Introduced with this commit.
commit 97ae5a858d2a2da9144ea9793b67b360a3a7c5fa
Author: Eric Engestrom <eric.engest...@intel.com>
Date: Fri Sep 21 11:42:38 2018 +0100
meson+autotools: get rid of spammy GCC warning -Wformat-truncation
That warning fires every time a string function takes an argument that
could possibly be longer than its max output, which triggers all over
the place, especially when working with file paths ("what if every file
path is MAX_PATH long?" is what GCC is saying, which is really annoying
when we *know* that "/dev/dri/cardN" is not gonna be 4096 char long and
it's safe to store it in a 32-char array).
Anyway, we either add a ton of dead code all over the place to make GCC
happy, or we get rid of its spam. I chose the latter.
Signed-off-by: Eric Engestrom <eric.engest...@intel.com>
Reviewed-by: Emil Velikov <emil.l.veli...@gmail.com>
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev