]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Disable some extra clang warnings
authorMatthias Kaehlcke <mka@chromium.org>
Tue, 1 May 2018 18:24:40 +0000 (11:24 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 May 2018 15:38:08 +0000 (16:38 +0100)
commit7069114ea5a78b8adb20830f42e4410dac636499
tree6b1e3c90b95e292eaef51a94eb083263a276a983
parent680f5352a5ea18420a9f45067419a8b9777c6f6a
drm/i915: Disable some extra clang warnings

Commit f46addf9045a ("drm/i915: Add -Wall -Wextra to our build, set
warnings to full") enabled extra warnings for i915 to spot possible
bugs in new code, and then disabled a subset of these warnings to keep
the current code building without warnings (with gcc). Enabling the
extra warnings also enabled some additional clang-only warnings, as a
result building i915 with clang currently is extremely noisy. For now
also disable the clang warnings sign-compare, sometimes-uninitialized,
unneeded-internal-declaration and initializer-overrides. If desired
they can be re-enabled after the code has been fixed.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180501182440.70121-1-mka@chromium.org
drivers/gpu/drm/i915/Makefile