From 5e82d2ce679c73eef635c196573b56fc6737d68a Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Thu, 8 Apr 2010 15:56:29 -0700 Subject: [PATCH] Remove annoying compiler warning when building C++ sources using va_list types. Change-Id: I0da78a785cd3b045b38beb2ff91d784c5e128c3a --- build/toolchains/arm-eabi-4.4.0/setup.mk | 10 ++++++++++ docs/CHANGES.TXT | 3 +++ 2 files changed, 13 insertions(+) diff --git a/build/toolchains/arm-eabi-4.4.0/setup.mk b/build/toolchains/arm-eabi-4.4.0/setup.mk index 02e5dd9..fc3c86e 100644 --- a/build/toolchains/arm-eabi-4.4.0/setup.mk +++ b/build/toolchains/arm-eabi-4.4.0/setup.mk @@ -37,6 +37,16 @@ TARGET_CFLAGS.common := \ -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ \ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ \ +# This is to avoid the dreaded warning compiler message: +# note: the mangling of 'va_list' has changed in GCC 4.4 +# +# The fact that the mangling changed does not affect the NDK ABI +# very fortunately (since none of the exposed APIs used va_list +# in their exported C++ functions). Also, GCC 4.5 has already +# removed the warning from the compiler. +# +TARGET_CFLAGS.common += -Wno-psabi + ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) TARGET_ARCH_CFLAGS := -march=armv7-a \ -mfloat-abi=softfp \ diff --git a/docs/CHANGES.TXT b/docs/CHANGES.TXT index 004baba..31b9dad 100644 --- a/docs/CHANGES.TXT +++ b/docs/CHANGES.TXT @@ -69,6 +69,9 @@ OTHER FIXES & CHANGES: the applications listed by APP. The error messages when APP is empty or malformed have also been improved. +- removed the annoying 'the mangling of 'va_list' has changed in GCC 4.4' + warning when building with GCC 4.4.0 for ARM. + ------------------------------------------------------------------------------- android-ndk-r3 -- 2.11.0