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:
Lukas Dürrenberger 2025-01-28 23:39:42 +01:00 committed by Chris Thrasher
parent 4c0b5b3df9
commit 4378a022e5

View File

@ -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