-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling MSVC warnings 4251 and 4275 #3143
Comments
This option was added when Windows shared libraries were supported (#1467). |
Hi, I came back to this today and I think I know why these warnings might've been disabled. What happens is that spdlog has classes which are marked as I'm not sure, however, of how useful it is to disable these warnings when building spdlog itself as opposed to disabling them within the header files so they're not triggered in user code. In my case, I had to surround all inclusions of spdlog.h with |
PR is welcome. |
Hi, I noticed that
spdlog/CMakeLists.txt
Line 165 in 5ebfc92
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4251
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-2-c4275
There's no explanation given in the code as to why these are disabled; however, looking at the description it seems like it's not correct to do so (4251 seems particularly concerning). Is there a reason why they're disabled instead of fixed?
The text was updated successfully, but these errors were encountered: