From 722d1d9293139a479dda4e38006b5d3be8a79b5d Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Tue, 29 May 2012 19:11:47 -0500 Subject: [PATCH] Suppress clang warning for tier0's GetCPUInformation(). --- public/tier0/platform.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/public/tier0/platform.h b/public/tier0/platform.h index 91dfc427..a82678f6 100644 --- a/public/tier0/platform.h +++ b/public/tier0/platform.h @@ -830,8 +830,17 @@ struct CPUInformation tchar* m_szProcessorID; // Processor vendor Identification. }; +#ifdef __clang__ +#pragma clang diagnostic push +#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 ); // ---------------------------------------------------------------------------------- //