[Mesa-dev] [Bug 108082] warning: unknown warning option '-Wno-format-truncation' [-Wunknown-warning-option]
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Sep 27 03:01:32 UTC 2018
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 at lists.freedesktop.org
Reporter: vlee at freedesktop.org
QA Contact: mesa-dev at lists.freedesktop.org
CC: emil.l.velikov at gmail.com, fdo-bugs at 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.engestrom at 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.engestrom at intel.com>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180927/9c2bdd43/attachment.html>
More information about the mesa-dev
mailing list