From b9d0498d180284b370b79037bdeaf76ad6b2c92e Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Tue, 29 May 2012 20:06:17 -0500 Subject: [PATCH] Suppress clang warning for tier0's GetCPUInformation(). --- public/tier0/platform.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/tier0/platform.h b/public/tier0/platform.h index 66add833..1fad3681 100644 --- a/public/tier0/platform.h +++ b/public/tier0/platform.h @@ -824,8 +824,18 @@ struct CPUInformation tchar* m_szProcessorID; // Processor vendor Identification. }; +#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 ); // ---------------------------------------------------------------------------------- //