mirror of
https://github.com/SFML/SFML.git
synced 2025-01-31 13:45:13 +08:00
Silence C4275 warning for sf::Exception
Warning is not relevant when deriving from standard library types as the documentation states: https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-2-c4275
This commit is contained in:
parent
4c0b5b3df9
commit
4378a022e5
@ -140,10 +140,11 @@
|
||||
#define SFML_API_EXPORT __declspec(dllexport)
|
||||
#define SFML_API_IMPORT __declspec(dllimport)
|
||||
|
||||
// For Visual C++ compilers, we also need to turn off this annoying C4251 warning
|
||||
// For Visual C++ compilers, we also need to turn off this annoying C4251 & C4275 warning
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#pragma warning(disable : 4251)
|
||||
#pragma warning(disable : 4251) // Using standard library types in our own exported types is okay
|
||||
#pragma warning(disable : 4275) // Exporting types derived from the standard library is okay
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user