diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-11-21 14:53:29 -0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2018-05-04 10:47:44 -0700 |
commit | 1343800592de33ed5e5696990c6126b644f866aa (patch) | |
tree | 2fd95daf1dad1b0ca75cd387b07be431b50736c5 /Android.mk | |
parent | a4e105e1740d4edf36c472e7d888583918000311 (diff) |
drm_hwcomposer: Use -Werror in external/drm_hwcomposer
* Suppress non-critical warnings.
I'm submitting this patch to try to align aosp/master
with the upstream fdo/master branch.
Bug: 66996870
Change-Id: I48e87526e408980c90e8a45e134f95da7a89a19d
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -16,6 +16,15 @@ ifeq ($(strip $(BOARD_USES_DRM_HWCOMPOSER)),true) 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 # ===================== @@ -24,6 +33,8 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := \ worker.cpp +LOCAL_CFLAGS := $(common_drm_hwcomposer_cflags) + LOCAL_MODULE := libdrmhwc_utils LOCAL_VENDOR_MODULE := true @@ -71,6 +82,8 @@ LOCAL_SRC_FILES := \ virtualcompositorworker.cpp \ vsyncworker.cpp +LOCAL_CFLAGS := $(common_drm_hwcomposer_cflags) + LOCAL_CPPFLAGS += \ -DHWC2_USE_CPP11 \ -DHWC2_INCLUDE_STRINGIFICATION |