Frameworks/native: Wall Werror in batteryservice & powermanager
Turn on -Wall -Werror in services/batteryservice and services/powermanager. Fix warnings. Change-Id: I1da667083013379cd8240377c48d63fa5c53033d
This commit is contained in:
parent
fecc0bf4f1
commit
347f2884db
@ -2,17 +2,19 @@ LOCAL_PATH:= $(call my-dir)
|
|||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES:= \
|
LOCAL_SRC_FILES:= \
|
||||||
BatteryProperties.cpp \
|
BatteryProperties.cpp \
|
||||||
BatteryProperty.cpp \
|
BatteryProperty.cpp \
|
||||||
IBatteryPropertiesListener.cpp \
|
IBatteryPropertiesListener.cpp \
|
||||||
IBatteryPropertiesRegistrar.cpp
|
IBatteryPropertiesRegistrar.cpp
|
||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := \
|
LOCAL_STATIC_LIBRARIES := \
|
||||||
libutils \
|
libutils \
|
||||||
libbinder
|
libbinder
|
||||||
|
|
||||||
LOCAL_MODULE:= libbatteryservice
|
LOCAL_MODULE:= libbatteryservice
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
|
||||||
|
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
||||||
|
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
@ -35,7 +35,7 @@ public:
|
|||||||
data.writeInterfaceToken(IBatteryPropertiesListener::getInterfaceDescriptor());
|
data.writeInterfaceToken(IBatteryPropertiesListener::getInterfaceDescriptor());
|
||||||
data.writeInt32(1);
|
data.writeInt32(1);
|
||||||
props.writeToParcel(&data);
|
props.writeToParcel(&data);
|
||||||
status_t err = remote()->transact(TRANSACT_BATTERYPROPERTIESCHANGED, data, &reply, IBinder::FLAG_ONEWAY);
|
remote()->transact(TRANSACT_BATTERYPROPERTIESCHANGED, data, &reply, IBinder::FLAG_ONEWAY);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,14 +2,16 @@ LOCAL_PATH:= $(call my-dir)
|
|||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES:= \
|
LOCAL_SRC_FILES:= \
|
||||||
IPowerManager.cpp
|
IPowerManager.cpp
|
||||||
|
|
||||||
LOCAL_SHARED_LIBRARIES := \
|
LOCAL_SHARED_LIBRARIES := \
|
||||||
libutils \
|
libutils \
|
||||||
libbinder
|
libbinder
|
||||||
|
|
||||||
LOCAL_MODULE:= libpowermanager
|
LOCAL_MODULE:= libpowermanager
|
||||||
|
|
||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
|
|
||||||
|
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
Loading…
Reference in New Issue
Block a user