Turn on -Wall for recovery modules
Turn on -Wall for all modules. Also remove the obsolete file_cmp() in apply_patch test and now() in wear_ui. The only exception is lib_edify due to the unused functions in the intermediate cpp files generated from the lex files. It will be handled in a seperate CL. Bug: 64939312 Test: mma, unit tests pass Change-Id: Ic53f76b60b6401ab20db3d98130d674c08e3702f
This commit is contained in:
@@ -37,6 +37,7 @@ LOCAL_STATIC_LIBRARIES := \
|
||||
libz
|
||||
LOCAL_CFLAGS := \
|
||||
-DZLIB_CONST \
|
||||
-Wall \
|
||||
-Werror
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
@@ -59,6 +60,7 @@ LOCAL_STATIC_LIBRARIES := \
|
||||
libz
|
||||
LOCAL_CFLAGS := \
|
||||
-DZLIB_CONST \
|
||||
-Wall \
|
||||
-Werror
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
@@ -82,6 +84,7 @@ LOCAL_STATIC_LIBRARIES := \
|
||||
libz
|
||||
LOCAL_CFLAGS := \
|
||||
-DZLIB_CONST \
|
||||
-Wall \
|
||||
-Werror
|
||||
include $(BUILD_HOST_STATIC_LIBRARY)
|
||||
|
||||
@@ -97,7 +100,7 @@ LOCAL_STATIC_LIBRARIES := \
|
||||
libbase \
|
||||
libedify \
|
||||
libcrypto
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := -Wall -Werror
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
# applypatch (target executable)
|
||||
@@ -119,13 +122,14 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
libbase \
|
||||
libz \
|
||||
libcutils
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := -Wall -Werror
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
libimgdiff_src_files := imgdiff.cpp
|
||||
|
||||
# libbsdiff is compiled with -D_FILE_OFFSET_BITS=64.
|
||||
libimgdiff_cflags := \
|
||||
-Wall \
|
||||
-Werror \
|
||||
-D_FILE_OFFSET_BITS=64 \
|
||||
-DZLIB_CONST
|
||||
@@ -177,7 +181,7 @@ include $(BUILD_HOST_STATIC_LIBRARY)
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_SRC_FILES := imgdiff_main.cpp
|
||||
LOCAL_MODULE := imgdiff
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_CFLAGS := -Wall -Werror
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libimgdiff \
|
||||
$(libimgdiff_static_libraries) \
|
||||
|
||||
Reference in New Issue
Block a user