]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | /* |
2 | * Copyright Andrey Semashev 2021. | |
3 | * Distributed under the Boost Software License, Version 1.0. | |
4 | * (See accompanying file LICENSE_1_0.txt or copy at | |
5 | * http://www.boost.org/LICENSE_1_0.txt) | |
6 | */ | |
7 | ||
8 | #include <boost/config/abi_prefix.hpp> | |
9 | ||
10 | #if !defined(BOOST_FILESYSTEM_ENABLE_WARNINGS) | |
11 | ||
12 | #if defined(_MSC_VER) && !defined(__clang__) | |
13 | ||
14 | #pragma warning(push, 3) | |
15 | // 'm_A' : class 'A' needs to have dll-interface to be used by clients of class 'B' | |
16 | #pragma warning(disable: 4251) | |
17 | // non dll-interface class 'A' used as base for dll-interface class 'B' | |
18 | #pragma warning(disable: 4275) | |
19 | // 'int' : forcing value to bool 'true' or 'false' (performance warning) | |
20 | #pragma warning(disable: 4800) | |
21 | // unreferenced formal parameter | |
22 | #pragma warning(disable: 4100) | |
23 | // conditional expression is constant | |
24 | #pragma warning(disable: 4127) | |
25 | // function marked as __forceinline not inlined | |
26 | #pragma warning(disable: 4714) | |
27 | // decorated name length exceeded, name was truncated | |
28 | #pragma warning(disable: 4503) | |
29 | // 'X': This function or variable may be unsafe. Consider using Y instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. | |
30 | #pragma warning(disable: 4996) | |
31 | ||
32 | #elif (defined(__GNUC__) && !(defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)) \ | |
33 | && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406) || defined(__clang__) | |
34 | ||
35 | // Note: clang-cl goes here as well, as it seems to support gcc-style warning control pragmas. | |
36 | ||
37 | #pragma GCC diagnostic push | |
38 | // unused parameter 'arg' | |
39 | #pragma GCC diagnostic ignored "-Wunused-parameter" | |
40 | ||
41 | #endif | |
42 | ||
43 | #endif // !defined(BOOST_FILESYSTEM_ENABLE_WARNINGS) |