From 93a4021c2251484cb0f6e653e42d9c878a8495f8 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Tue, 29 May 2012 20:11:05 -0500 Subject: [PATCH] Suppress clang warning for tier0's GetCPUInformation(). --- public/tier0/platform.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public/tier0/platform.h b/public/tier0/platform.h index f56e3786..34c37c94 100644 --- a/public/tier0/platform.h +++ b/public/tier0/platform.h @@ -1127,8 +1127,19 @@ struct CPUInformation CPUInformation(): m_Size(0){} }; +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wreturn-type-c-linkage" +#endif + PLATFORM_INTERFACE const CPUInformation& GetCPUInformation(); +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + + PLATFORM_INTERFACE void GetCurrentDate( int *pDay, int *pMonth, int *pYear ); PLATFORM_INTERFACE void GetCurrentDayOfTheWeek( int *pDay ); // 0 = Sunday PLATFORM_INTERFACE void GetCurrentDayOfTheYear( int *pDay ); // 0 = Jan 1