diff --git a/public/tier0/dbg.h b/public/tier0/dbg.h index dcbc6658..1f01d1b4 100644 --- a/public/tier0/dbg.h +++ b/public/tier0/dbg.h @@ -178,6 +178,12 @@ enum SpewRetval_t /* type of externally defined function used to display debug spew */ typedef SpewRetval_t (*SpewOutputFunc_t)( SpewType_t spewType, const tchar *pMsg ); +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wreturn-type-c-linkage" +#endif + /* Used to redirect spew output */ DBG_INTERFACE void SpewOutputFunc( SpewOutputFunc_t func ); @@ -206,6 +212,10 @@ DBG_INTERFACE bool SetupWin32ConsoleIO(); // Returns true if they want to break in the debugger. DBG_INTERFACE bool DoNewAssertDialog( const tchar *pFile, int line, const tchar *pExpression ); +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + /* Used to define macros, never use these directly. */ #define _AssertMsg( _exp, _msg, _executeExp, _bFatal ) \ diff --git a/public/tier0/platform.h b/public/tier0/platform.h index 15ae413e..51b51602 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 ); // ---------------------------------------------------------------------------------- //