mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 13:53:57 -07:00
Patch By: Stan Reviewed By: Itms, vladislavbelov Differential Revision: https://code.wildfiregames.com/D1262 This was SVN commit r21480.
61 lines
3.5 KiB
C
61 lines
3.5 KiB
C
/* Copyright (C) 2018 Wildfire Games.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
* a copy of this software and associated documentation files (the
|
|
* "Software"), to deal in the Software without restriction, including
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
* the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included
|
|
* in all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
// rationale: boost is only included from the PCH, but warnings are still
|
|
// raised when templates are instantiated (e.g. vfs_lookup.cpp),
|
|
// so include this header from such source files as well.
|
|
|
|
#include "lib/sysdep/compiler.h" // ICC_VERSION
|
|
#include "lib/sysdep/arch.h" // ARCH_IA32
|
|
|
|
#if MSC_VERSION
|
|
# pragma warning(disable:4710) // function not inlined
|
|
#if _MSC_VER > 1800
|
|
# pragma warning(disable:4626) // assignment operator was implicitly defined as deleted because a base class assignment operator is inaccessible or deleted
|
|
# pragma warning(disable:4625) // copy constructor was implicitly defined as deleted
|
|
# pragma warning(disable:4668) // 'symbol' is not defined as a preprocessor macro, replacing with '0' for 'directives'
|
|
# pragma warning(disable:5027) // 'type': move assignment operator was implicitly defined as deleted
|
|
# pragma warning(disable:4365) // signed/unsigned mismatch
|
|
# pragma warning(disable:4619) // there is no warning for 'warning'
|
|
# pragma warning(disable:5031) // #pragma warning(pop): likely mismatch, popping warning state pushed in different file
|
|
# pragma warning(disable:5026) // 'type': move constructor was implicitly defined as deleted
|
|
# pragma warning(disable:4820) // incorrect padding
|
|
# pragma warning(disable:4514) // unreferenced inlined function has been removed
|
|
# pragma warning(disable:4571) // Informational: catch(...) semantics changed since Visual C++ 7.1; structured exceptions (SEH) are no longer caught
|
|
#endif
|
|
#endif
|
|
#if ICC_VERSION
|
|
# pragma warning(push)
|
|
# pragma warning(disable:82) // storage class is not first
|
|
# pragma warning(disable:193) // zero used for undefined preprocessing identifier
|
|
# pragma warning(disable:304) // access control not specified
|
|
# pragma warning(disable:367) // duplicate friend declaration
|
|
# pragma warning(disable:444) // destructor for base class is not virtual
|
|
# pragma warning(disable:522) // function redeclared inline after being called
|
|
# pragma warning(disable:811) // exception specification for implicitly declared virtual function is incompatible with that of overridden function
|
|
# pragma warning(disable:1879) // unimplemented pragma ignored
|
|
# pragma warning(disable:2270) // the declaration of the copy assignment operator has been suppressed
|
|
# pragma warning(disable:2273) // the declaration of the copy constructor has been suppressed
|
|
# if ARCH_IA32
|
|
# pragma warning(disable:693) // calling convention specified here is ignored
|
|
# endif
|
|
#endif
|