From 73261a7bd24b5405c127704f11095c4838c19fc3 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sat, 30 Jun 2018 08:47:48 -0400 Subject: [PATCH] Fix compile error regression in Error shim on GCC/Clang. --- public/tier0/dbg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/tier0/dbg.h b/public/tier0/dbg.h index 2e2f68f8..5b58e1b8 100644 --- a/public/tier0/dbg.h +++ b/public/tier0/dbg.h @@ -244,7 +244,8 @@ PLATFORM_INTERFACE void Warning( const tchar *pMsg, ... ) FMTFUNCTION( 1, 2 ); PLATFORM_INTERFACE void Warning_SpewCallStack( int iMaxCallStackLength, const tchar *pMsg, ... ) FMTFUNCTION( 2, 3 ); // This is gone in Source2. Provide helper to roughly mimic Source1 behavior -inline void Error( const tchar* pMsg, ... ) FMTFUNCTION( 1, 2 ) +void Error( const tchar* pMsg, ... ) FMTFUNCTION( 1, 2 ); +inline void Error( const tchar* pMsg, ... ) { static char szBuffer[MAX_LOGGING_MESSAGE_LENGTH]; va_list params;