mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 12:06:07 +08:00
Allow compilation on gcc/clang without -Wno-unknown-pragmas.
This commit is contained in:
@ -6,7 +6,9 @@
|
||||
// Serialization buffer
|
||||
//===========================================================================//
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning (disable : 4514)
|
||||
#endif
|
||||
|
||||
#include "utlbuffer.h"
|
||||
#include <stdio.h>
|
||||
@ -904,7 +906,9 @@ void CUtlBuffer::SeekGet( SeekType_t type, int offset )
|
||||
// Parse...
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning ( disable : 4706 )
|
||||
#endif
|
||||
|
||||
int CUtlBuffer::VaScanf( const char* pFmt, va_list list )
|
||||
{
|
||||
@ -1075,7 +1079,9 @@ int CUtlBuffer::VaScanf( const char* pFmt, va_list list )
|
||||
return numScanned;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning ( default : 4706 )
|
||||
#endif
|
||||
|
||||
int CUtlBuffer::Scanf( const char* pFmt, ... )
|
||||
{
|
||||
|
Reference in New Issue
Block a user