Fix some warnings. Disable warning about invalid offsetof as it produces billion warnings in save-restore code

This commit is contained in:
Roman Chistokhodov 2018-01-13 18:03:24 +03:00
parent c5aa3aa40e
commit 31c1e121b5
3 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# #
# Copyright (c) 2015 Pavlo Lavrenenko # Copyright (c) 2015 Pavlo Lavrenenko
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
@ -28,7 +28,7 @@ set (SVDLL_LIBRARY server)
add_definitions(-DCLIENT_WEAPONS) add_definitions(-DCLIENT_WEAPONS)
if(NOT MSVC) if(NOT MSVC)
add_compile_options(-fno-exceptions) # GCC/Clang flag add_compile_options(-fno-exceptions -Wno-invalid-offsetof) # GCC/Clang flag
add_definitions(-D_LINUX) # It seems enough for all non-Win32 systems add_definitions(-D_LINUX) # It seems enough for all non-Win32 systems
add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf ) add_definitions(-Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf )
else() else()

View File

@ -1,4 +1,4 @@
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ //========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
// //
// Purpose: New version of the slider bar // Purpose: New version of the slider bar
// //
@ -82,7 +82,7 @@ void CPlayerMonster :: HandleAnimEvent( MonsterEvent_t *pEvent )
//========================================================= //=========================================================
int CPlayerMonster::ISoundMask( void ) int CPlayerMonster::ISoundMask( void )
{ {
return NULL; return 0;
} }
//========================================================= //=========================================================

View File

@ -219,7 +219,6 @@ private:
bool _paintBorderEnabled; bool _paintBorderEnabled;
bool _paintBackgroundEnabled; bool _paintBackgroundEnabled;
bool _paintEnabled; bool _paintEnabled;
friend class Panel;
friend class App; friend class App;
friend class SurfaceBase; friend class SurfaceBase;
friend class Image; friend class Image;