From 38997e4aed2b16066839edc0decc12fe615dcc2e Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Thu, 16 Nov 2017 11:36:56 -0800 Subject: [PATCH] Use -Werror in bionic/tests Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I64a0458c787054a0694c736be20dc53772ff3781 --- tests/Android.mk | 4 ++-- tests/libs/Android.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Android.mk b/tests/Android.mk index 98216d711..c945bab70 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -75,7 +75,7 @@ LOCAL_CXX = $(LOCAL_PATH)/file-check-cxx \ LOCAL_CLANG := false LOCAL_MODULE := bionic-compile-time-tests-g++ -LOCAL_CPPFLAGS := -Wall +LOCAL_CPPFLAGS := -Wall -Werror # Disable color diagnostics so the warnings output matches the source LOCAL_CPPFLAGS += -fdiagnostics-color=never LOCAL_SRC_FILES := fortify_filecheck_diagnostics_test.cpp @@ -94,7 +94,7 @@ LOCAL_CXX := $(LOCAL_PATH)/file-check-cxx \ LOCAL_CLANG := true LOCAL_MODULE := bionic-compile-time-tests-clang++ -LOCAL_CPPFLAGS := -Wall +LOCAL_CPPFLAGS := -Wall -Werror LOCAL_CPPFLAGS += -fno-color-diagnostics -ferror-limit=10000 LOCAL_SRC_FILES := fortify_filecheck_diagnostics_test.cpp include $(BUILD_STATIC_LIBRARY) diff --git a/tests/libs/Android.mk b/tests/libs/Android.mk index a54318dd6..5bd028d95 100644 --- a/tests/libs/Android.mk +++ b/tests/libs/Android.mk @@ -17,7 +17,7 @@ LOCAL_PATH := $(call my-dir) TEST_PATH := $(LOCAL_PATH)/.. -common_cppflags := +common_cppflags := -Wall -Werror common_additional_dependencies := \ $(LOCAL_PATH)/Android.mk \ $(LOCAL_PATH)/Android.build.dt_runpath.mk \