mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-05 17:13:36 +08:00
Suppress clang warning for tier0's GetCPUInformation and GetSpewOutputColor.
This commit is contained in:
parent
c18cbfe694
commit
50e074a2b7
@ -178,6 +178,12 @@ enum SpewRetval_t
|
|||||||
/* type of externally defined function used to display debug spew */
|
/* type of externally defined function used to display debug spew */
|
||||||
typedef SpewRetval_t (*SpewOutputFunc_t)( SpewType_t spewType, const tchar *pMsg );
|
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 */
|
/* Used to redirect spew output */
|
||||||
DBG_INTERFACE void SpewOutputFunc( SpewOutputFunc_t func );
|
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.
|
// Returns true if they want to break in the debugger.
|
||||||
DBG_INTERFACE bool DoNewAssertDialog( const tchar *pFile, int line, const tchar *pExpression );
|
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. */
|
/* Used to define macros, never use these directly. */
|
||||||
|
|
||||||
#define _AssertMsg( _exp, _msg, _executeExp, _bFatal ) \
|
#define _AssertMsg( _exp, _msg, _executeExp, _bFatal ) \
|
||||||
|
@ -824,8 +824,18 @@ struct CPUInformation
|
|||||||
tchar* m_szProcessorID; // Processor vendor Identification.
|
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();
|
PLATFORM_INTERFACE const CPUInformation& GetCPUInformation();
|
||||||
|
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
PLATFORM_INTERFACE void GetCurrentDate( int *pDay, int *pMonth, int *pYear );
|
PLATFORM_INTERFACE void GetCurrentDate( int *pDay, int *pMonth, int *pYear );
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------------- //
|
// ---------------------------------------------------------------------------------- //
|
||||||
|
Loading…
x
Reference in New Issue
Block a user