From 717581313ae396cb958babe3fdc176b728e585e3 Mon Sep 17 00:00:00 2001 From: Pavel Chupin Date: Thu, 20 Mar 2014 13:26:02 +0400 Subject: [PATCH] Disable for a while extra warnings when using [v]sprintf Toolchain has a lot of usage of these functions and since we are building the most components with -Werror it produces lots of errors. Change-Id: Iaf5a95d6b493adb8d85803a62b184029060727d9 Signed-off-by: Pavel Chupin --- ndk/platforms/android-20/include/stdio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ndk/platforms/android-20/include/stdio.h b/ndk/platforms/android-20/include/stdio.h index c241d9456..f8667e232 100644 --- a/ndk/platforms/android-20/include/stdio.h +++ b/ndk/platforms/android-20/include/stdio.h @@ -253,10 +253,10 @@ int vprintf(const char * __restrict, __va_list) #ifndef __AUDIT__ char* gets(char*) __warnattr("gets is very unsafe; consider using fgets"); int sprintf(char* __restrict, const char* __restrict, ...) - __printflike(2, 3) __warnattr("sprintf is often misused; please use snprintf"); + __printflike(2, 3); //__warnattr("sprintf is often misused; please use snprintf"); char* tmpnam(char*) __warnattr("tmpnam possibly used unsafely; consider using mkstemp"); int vsprintf(char* __restrict, const char* __restrict, __va_list) - __printflike(2, 0) __warnattr("vsprintf is often misused; please use vsnprintf"); + __printflike(2, 0); //__warnattr("vsprintf is often misused; please use vsnprintf"); #if __XPG_VISIBLE char* tempnam(const char*, const char*) __warnattr("tempnam possibly used unsafely; consider using mkstemp");