am 85981760: am be15d16b: Merge "Turn on -Wunused and fix the mistakes it uncovers."

* commit '859817602d24d5c4868ed8b7d0cc69e5d3babfc6':
  Turn on -Wunused and fix the mistakes it uncovers.
This commit is contained in:
Elliott Hughes
2014-06-04 00:12:06 +00:00
committed by Android Git Automerger
10 changed files with 10 additions and 11 deletions

View File

@@ -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 \

View File

@@ -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) {

View File

@@ -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);