]> git.sesse.net Git - casparcg/blob - common/compiler/vs/disable_silly_warnings.h
Ignored warning preventing the server to build under VS 2015 update 2.
[casparcg] / common / compiler / vs / disable_silly_warnings.h
1 /*
2 * copyright (c) 2010 Sveriges Television AB <info@casparcg.com>
3 *
4 *  This file is part of CasparCG.
5 *
6 *    CasparCG is free software: you can redistribute it and/or modify
7 *    it under the terms of the GNU General Public License as published by
8 *    the Free Software Foundation, either version 3 of the License, or
9 *    (at your option) any later version.
10 *
11 *    CasparCG is distributed in the hope that it will be useful,
12 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
13 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 *    GNU General Public License for more details.
15
16 *    You should have received a copy of the GNU General Public License
17 *    along with CasparCG.  If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20 #pragma once
21
22 #if defined(_MSC_VER)
23 #pragma warning (disable : 4100) // unreferenced formal parameter
24 #pragma warning (disable : 4127) // conditional expression is constant
25 #pragma warning (disable : 4180) // qualifier applied to function type has no meaning; ignored
26 #pragma warning (disable : 4355) // 'this' : used in base member initializer list
27 #pragma warning (disable : 4482) // nonstandard extension used: enum 'enum' used in qualified name
28 #pragma warning (disable : 4503) // decorated name length exceeded, name was truncated
29 #pragma warning (disable : 4512) // assignment operator could not be generated
30 #pragma warning (disable : 4702) // unreachable code
31 #pragma warning (disable : 4714) // marked as __forceinline not inlined
32 #pragma warning (disable : 4505) // unreferenced local function has been 
33 #pragma warning (disable : 4481) // nonstandard extension used: override specifier 'override'
34 #pragma warning (disable : 4996) // function call with parameters that may be unsafe
35 #pragma warning (disable : 4334) // '<<': result of 32 - bit shift implicitly converted to 64 bits(was 64 - bit shift intended ?)
36
37
38 #if (_MSC_VER > 1800 && _MSC_FULL_VER >= 190023506)
39         #pragma warning( disable : 4592) // symbol will be dynamically initialized (implementation limitation). Bug in VS2015 14.0.24720.00 Update 1
40 #endif
41
42 #endif
43