* commit '859817602d24d5c4868ed8b7d0cc69e5d3babfc6': Turn on -Wunused and fix the mistakes it uncovers.
This commit is contained in:
@@ -486,7 +486,7 @@ libc_arch_static_src_files := \
|
||||
# ========================================================
|
||||
libc_common_cflags := \
|
||||
-D_LIBC=1 \
|
||||
-Wall -Wextra \
|
||||
-Wall -Wextra -Wunused \
|
||||
|
||||
# Try to catch typical 32-bit assumptions that break with 64-bit pointers.
|
||||
libc_common_cflags += \
|
||||
@@ -709,7 +709,7 @@ include $(CLEAR_VARS)
|
||||
LOCAL_SRC_FILES := $(libc_upstream_openbsd_src_files)
|
||||
LOCAL_CFLAGS := \
|
||||
$(libc_common_cflags) \
|
||||
-Wno-sign-compare -Wno-uninitialized \
|
||||
-Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter \
|
||||
-Werror \
|
||||
-I$(LOCAL_PATH)/upstream-openbsd/android/include \
|
||||
-I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
|
||||
|
||||
@@ -94,7 +94,7 @@ __LIBC_HIDDEN__ void __libc_postfini() {
|
||||
// Note that the dynamic linker has also run all constructors in the
|
||||
// executable at this point.
|
||||
__noreturn void __libc_init(void* raw_args,
|
||||
void (*onexit)(void),
|
||||
void (*onexit)(void) __unused,
|
||||
int (*slingshot)(int, char**, char**),
|
||||
structors_array_t const * const structors) {
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ static void apply_gnu_relro() {
|
||||
}
|
||||
|
||||
__noreturn void __libc_init(void* raw_args,
|
||||
void (*onexit)(void),
|
||||
void (*onexit)(void) __unused,
|
||||
int (*slingshot)(int, char**, char**),
|
||||
structors_array_t const * const structors) {
|
||||
KernelArgumentBlock args(raw_args);
|
||||
|
||||
Reference in New Issue
Block a user