From 8f6eb5c045896d13b411ab8906f9af8e2f258b5a Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 24 Feb 2015 22:07:18 -0800 Subject: Fix build from implicit declaration. Turn the warning on by default and turn on -Werror so this doesn't happen next time. Change-Id: Id65bf0cb63bbf0ff224655b425463ae2f55435df --- minadbd/Android.mk | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'minadbd/Android.mk') diff --git a/minadbd/Android.mk b/minadbd/Android.mk index f4b060b47..dce004feb 100644 --- a/minadbd/Android.mk +++ b/minadbd/Android.mk @@ -1,22 +1,22 @@ # Copyright 2005 The Android Open Source Project -# -# Android.mk for adb -# LOCAL_PATH:= $(call my-dir) -# minadbd library -# ========================================================= - include $(CLEAR_VARS) LOCAL_SRC_FILES := \ - adb_main.c \ - fuse_adb_provider.c \ - services.c \ + adb_main.c \ + fuse_adb_provider.c \ + services.c \ + +LOCAL_CFLAGS := \ + -Wall -Werror \ + -Wno-unused-parameter \ + -Wimplicit-function-declaration \ + -D_GNU_SOURCE \ + -D_XOPEN_SOURCE \ + -DADB_HOST=0 \ -LOCAL_CFLAGS := -O2 -g -DADB_HOST=0 -Wall -Wno-unused-parameter -LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE LOCAL_C_INCLUDES := bootable/recovery system/core/adb LOCAL_WHOLE_STATIC_LIBRARIES := libadbd -- cgit v1.2.3