From: SeokYeon Hwang Date: Wed, 2 Sep 2015 04:14:39 +0000 (+0900) Subject: os-win32.h: Suppress warning -Wredundant-decls X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2cde9ee3261a248d50d74583fc71eb8d18dd62b;p=sdk%2Femulator%2Fqemu.git os-win32.h: Suppress warning -Wredundant-decls "time.h" in some distributions aleady has gmtime_r(), localtime_r() as a real function prototype (not a macro). So we should suppress warning "-Wredundnat-decls" for them. Change-Id: I8b2764d5c6d1b136b2a3dcc862d52b785d8a5855 Signed-off-by: SeokYeon Hwang --- diff --git a/include/sysemu/os-win32.h b/include/sysemu/os-win32.h index 4035c4fe54..de356e3006 100644 --- a/include/sysemu/os-win32.h +++ b/include/sysemu/os-win32.h @@ -73,10 +73,18 @@ #define siglongjmp(env, val) longjmp(env, val) /* Missing POSIX functions. Don't use MinGW-w64 macros. */ +// CONFIG_MARU MODIFICATION +#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wredundant-decls" +#endif #undef gmtime_r struct tm *gmtime_r(const time_t *timep, struct tm *result); #undef localtime_r struct tm *localtime_r(const time_t *timep, struct tm *result); +#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE +#pragma GCC diagnostic pop +#endif static inline void os_setup_signal_handling(void) {}