Skip to content

Commit

Permalink
Use -Werror in hardware/qcom/msm8998/gpt-utils
Browse files Browse the repository at this point in the history
* Suppress existing warnings.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: If2d100b57d6f29a91ed744263aae75714c8b1bff
  • Loading branch information
chih-hung authored and Eamo5 committed Jul 7, 2020
1 parent a61adf4 commit 75937e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recovery/gpt-utils/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

LOCAL_PATH := $(call my-dir)

gpt_utils_common_cflags := -Wall -Werror -Wno-unused-variable

include $(CLEAR_VARS)
LOCAL_SRC_FILES := gpt-utils.cpp
ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
Expand All @@ -25,6 +27,7 @@ endif
LOCAL_SHARED_LIBRARIES := liblog libz
LOCAL_MODULE := libgptutils
LOCAL_MODULE_OWNER := qti
LOCAL_CFLAGS := $(gpt_utils_common_cflags)
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
Expand All @@ -40,4 +43,5 @@ LOCAL_PROPRIETARY_MODULE := true
LOCAL_MODULE_OWNER := qti
LOCAL_COPY_HEADERS_TO := gpt-utils/inc
LOCAL_COPY_HEADERS := gpt-utils.h
LOCAL_CFLAGS := $(gpt_utils_common_cflags)
include $(BUILD_SHARED_LIBRARY)

0 comments on commit 75937e7

Please sign in to comment.