-
Notifications
You must be signed in to change notification settings - Fork 8
/
pragma.h
33 lines (28 loc) · 1.6 KB
/
pragma.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
Fire is a freeware UCI chess playing engine authored by Norman Schmidt.
Fire utilizes many state-of-the-art chess programming ideas and techniques
which have been documented in detail at https://www.chessprogramming.org/
and demonstrated via the very strong open-source chess engine Stockfish...
https://github.com/official-stockfish/Stockfish.
Fire is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or any later version.
You should have received a copy of the GNU General Public License with
this program: copying.txt. If not, see <http://www.gnu.org/licenses/>.
*/
// disable specific compiler warnings
#pragma once
#ifdef _MSC_VER
#pragma warning(disable: 4100) // 'piece': unreferenced formal parameter
#pragma warning(disable: 4127) // conditional expression is constant
#pragma warning(disable: 4146) // Unary minus operator applied to unsigned type
#pragma warning(disable: 4244) // '=': conversion from 'Move' to 'MoveCompact', possible loss of data
#pragma warning(disable: 4706) // assignment within conditional expression
#else
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif
#ifdef __INTEL_COMPILER
#pragma warning(disable: 1491) // definition from the enclosing scope function is used.
#pragma warning(disable: 26812) // The enum type 'Color' is unscoped. Prefer 'enum class' over 'enum'
#pragma warning(disable: 26451) // Arithmetic overflow: Using operator '<<' on a 4 byte value and then casting the result to a 8 byte value.
#endif