mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-25 03:53:32 +01:00
33 lines
832 B
C
33 lines
832 B
C
#pragma once
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER < 1911
|
|
// [[nodiscard]] is not recognized before VS 2017 version 15.3
|
|
#pragma warning(disable : 5030)
|
|
#endif
|
|
|
|
#if defined(_MSC_VER) && _MSC_VER < 1910
|
|
// https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4800?view=vs-2019
|
|
#pragma warning(disable : 4800)
|
|
#endif
|
|
|
|
#if defined(__GNUC__) && __GNUC__ < 7
|
|
// [[nodiscard]] is not recognized before GCC version 7
|
|
#pragma GCC diagnostic ignored "-Wattributes"
|
|
#endif
|
|
|
|
#if defined(_MSC_VER)
|
|
#include <sal.h>
|
|
#endif
|
|
|
|
#ifndef _Analysis_assume_
|
|
#define _Analysis_assume_(...)
|
|
#endif
|
|
|
|
#ifdef _MSC_VER
|
|
#define VCPKG_MSVC_WARNING(...) __pragma(warning(__VA_ARGS__))
|
|
#define GCC_DIAGNOSTIC(...)
|
|
#else
|
|
#define VCPKG_MSVC_WARNING(...)
|
|
#define GCC_DIAGNOSTIC(...) _Pragma("diagnostic " #__VA_ARGS__)
|
|
#endif
|