From 7a42bb5985b4cc073d059052e5fe219b4df7d2b5 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Tue, 29 May 2012 20:10:53 -0500 Subject: [PATCH] Suppress clang warning for tier0's GetSpewOutputColor(). --- public/tier0/dbg.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/tier0/dbg.h b/public/tier0/dbg.h index 9c0a64fe..150ec659 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 ) \