xref: /oneTBB/src/tbb/tools_api/disable_warnings.h (revision 0a2b3987)
1 /*
2     Copyright (c) 2005-2021 Intel Corporation
3 
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7 
8         http://www.apache.org/licenses/LICENSE-2.0
9 
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15 */
16 
17 #include "ittnotify_config.h"
18 
19 #if ITT_PLATFORM==ITT_PLATFORM_WIN && _MSC_VER
20 
21 #pragma warning (disable: 593)   /* parameter "XXXX" was set but never used                 */
22 #pragma warning (disable: 344)   /* typedef name has already been declared (with same type) */
23 #pragma warning (disable: 174)   /* expression has no effect                                */
24 #pragma warning (disable: 4127)  /* conditional expression is constant                      */
25 #pragma warning (disable: 4306)  /* conversion from '?' to '?' of greater size              */
26 
27 #endif /* ITT_PLATFORM==ITT_PLATFORM_WIN */
28 
29 #if defined __INTEL_COMPILER
30 
31 #pragma warning (disable: 869)  /* parameter "XXXXX" was never referenced                  */
32 #pragma warning (disable: 1418) /* external function definition with no prior declaration  */
33 #pragma warning (disable: 1419) /* external declaration in primary source file             */
34 
35 #endif /* __INTEL_COMPILER */
36