aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2020-11-12 15:30:44 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2020-11-13 17:45:40 +0200
commitaeb995fdc649d4e3df83330ea2afebbf117543df (patch)
tree55d570ee9e22b57ece9f0040f36227466173c03d /tools
parent21897a10ca0295f65f158ed3cbac396bc5adbb54 (diff)
downloadmeson-aeb995fdc649d4e3df83330ea2afebbf117543df.zip
meson-aeb995fdc649d4e3df83330ea2afebbf117543df.tar.gz
meson-aeb995fdc649d4e3df83330ea2afebbf117543df.tar.bz2
Do not warn when -Wpedantic is added as a project argument.
The only way to add it via warning_level is top opt in to -Wextra too. But this is often not really desirable, since -Wextra is not stable -- it changes its meaning every compiler release, thus mysteriously adding new warnings. Furthermore, it's not really the same kind of warning -- a pedantic warning is always correct that your code is wrong, but defines wrongness as "not per the portable standard". Unlike -Wextra it doesn't try to judge your code to see if you're doing something that is "often not what you meant", but is prone to false positives. Really, we need different *kinds* of warning levels, possibly as an array -- not just a monotonically increasing number. But since there's currently nothing flexible enough to specify -Wpedantic without -Wextra, we will just remove the warning for the former, and let people add it to their project arguments in peace.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions