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// qualifier applied to function type has no meaning; ignored
32#pragma warning(disable: 4180)
33// qualifier applied to reference type; ignored
34#pragma warning(disable: 4181)
35
36#elif (defined(__GNUC__) && !(defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)) \
37 && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406) || defined(__clang__)
38
39// Note: clang-cl goes here as well, as it seems to support gcc-style warning control pragmas.
40
41#pragma GCC diagnostic push
42// unused parameter 'arg'
43#pragma GCC diagnostic ignored "-Wunused-parameter"
44// unused function 'foo'
45#pragma GCC diagnostic ignored "-Wunused-function"
46
47#if defined(__clang__)
48// template argument uses unnamed type
49#pragma clang diagnostic ignored "-Wunnamed-type-template-args"
50#endif // defined(__clang__)
51
52#endif
53
54#endif // !defined(BOOST_FILESYSTEM_ENABLE_WARNINGS)
55

source code of boost/libs/filesystem/include/boost/filesystem/detail/header.hpp