Blame view

3rdparty/boost_1_81_0/boost/filesystem/detail/header.hpp 1.84 KB
63e88f80   Hu Chunming   提交三方库
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  /*
   *             Copyright Andrey Semashev 2021.
   * Distributed under the Boost Software License, Version 1.0.
   *    (See accompanying file LICENSE_1_0.txt or copy at
   *          http://www.boost.org/LICENSE_1_0.txt)
   */
  
  #include <boost/config/abi_prefix.hpp>
  
  #if !defined(BOOST_FILESYSTEM_ENABLE_WARNINGS)
  
  #if defined(_MSC_VER) && !defined(__clang__)
  
  #pragma warning(push, 3)
  // 'm_A' : class 'A' needs to have dll-interface to be used by clients of class 'B'
  #pragma warning(disable: 4251)
  // non dll-interface class 'A' used as base for dll-interface class 'B'
  #pragma warning(disable: 4275)
  // 'int' : forcing value to bool 'true' or 'false' (performance warning)
  #pragma warning(disable: 4800)
  // unreferenced formal parameter
  #pragma warning(disable: 4100)
  // conditional expression is constant
  #pragma warning(disable: 4127)
  // function marked as __forceinline not inlined
  #pragma warning(disable: 4714)
  // decorated name length exceeded, name was truncated
  #pragma warning(disable: 4503)
  // '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.
  #pragma warning(disable: 4996)
  // qualifier applied to function type has no meaning; ignored
  #pragma warning(disable: 4180)
  // qualifier applied to reference type; ignored
  #pragma warning(disable: 4181)
  
  #elif (defined(__GNUC__) && !(defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)) \
      && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406) || defined(__clang__)
  
  // Note: clang-cl goes here as well, as it seems to support gcc-style warning control pragmas.
  
  #pragma GCC diagnostic push
  // unused parameter 'arg'
  #pragma GCC diagnostic ignored "-Wunused-parameter"
  // unused function 'foo'
  #pragma GCC diagnostic ignored "-Wunused-function"
  
  #endif
  
  #endif // !defined(BOOST_FILESYSTEM_ENABLE_WARNINGS)