Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c597684 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Clean up the debuggerd makefile.

In particular, turn on -Wunused, which is globally off by default
thanks to build/core/config.mk.

Change-Id: Iba3ee1c0726f43eced972a53959f0e1cd97190c9
parent 03b87b49
Loading
Loading
Loading
Loading
+15 −16
Original line number Diff line number Diff line
@@ -15,12 +15,11 @@ LOCAL_SRC_FILES_mips := mips/machine.cpp
LOCAL_SRC_FILES_x86    := x86/machine.cpp
LOCAL_SRC_FILES_x86_64 := x86_64/machine.cpp

LOCAL_CONLYFLAGS := -std=gnu99
LOCAL_CPPFLAGS := -std=gnu++11
LOCAL_CFLAGS := \
	-Wall \
	-Wno-array-bounds \
	-Werror
LOCAL_CPPFLAGS := \
    -std=gnu++11 \
    -W -Wall -Wextra \
    -Wunused \
    -Werror \

ifeq ($(ARCH_ARM_HAVE_VFP),true)
LOCAL_CFLAGS_arm += -DWITH_VFP
@@ -31,7 +30,6 @@ endif # ARCH_ARM_HAVE_VFP_D32

LOCAL_SHARED_LIBRARIES := \
    libbacktrace \
	libc \
    libcutils \
    liblog \
    libselinux \
@@ -42,6 +40,7 @@ LOCAL_MODULE := debuggerd
LOCAL_MODULE_STEM_32 := debuggerd
LOCAL_MODULE_STEM_64 := debuggerd64
LOCAL_MULTILIB := both
LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk

include $(BUILD_EXECUTABLE)