OSDN Git Service

drm_hwcomposer: Drop -Wno-unused-* build options and remove unused variables
authorJohn Stultz <john.stultz@linaro.org>
Wed, 11 Jul 2018 18:28:40 +0000 (11:28 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 11 Jul 2018 19:41:35 +0000 (12:41 -0700)
This patch drops the -Wno-unused-* build options and removes
the currently unused variables that would keep things from
building.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Android.mk
drmdisplaycomposition.cpp
drmhwctwo.cpp

index 3d48ba5..c212127 100644 (file)
@@ -19,11 +19,6 @@ LOCAL_PATH := $(call my-dir)
 common_drm_hwcomposer_cflags := \
     -Wall \
     -Werror \
-    -Wno-unused-function \
-    -Wno-unused-label \
-    -Wno-unused-parameter \
-    -Wno-unused-private-field \
-    -Wno-unused-variable \
 
 # =====================
 # libdrmhwc_utils.a
index 129bec2..aaf78cc 100644 (file)
@@ -107,7 +107,6 @@ int DrmDisplayComposition::Plan(std::vector<DrmPlane *> *primary_planes,
     to_composite.emplace(std::make_pair(i, &layers_[i]));
 
   int ret;
-  std::vector<DrmCompositionPlane> plan;
   std::tie(ret, composition_planes_) = planner_->ProvisionPlanes(
       to_composite, crtc_, primary_planes, overlay_planes);
   if (ret) {
index 3ee9f8e..3d0217c 100644 (file)
@@ -693,7 +693,6 @@ HWC2::Error DrmHwcTwo::HwcDisplay::SetVsyncEnabled(int32_t enabled) {
 HWC2::Error DrmHwcTwo::HwcDisplay::ValidateDisplay(uint32_t *num_types,
                                                    uint32_t *num_requests) {
   supported(__func__);
-  size_t plane_count = 0;
   *num_types = 0;
   *num_requests = 0;
   size_t avail_planes = primary_planes_.size() + overlay_planes_.size();