Skip to content
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

Fix warning C4365 emitted from printf.h #3864

Closed
wants to merge 1 commit into from

Conversation

Baardi
Copy link
Contributor

@Baardi Baardi commented Feb 23, 2024

Compiler: MSVC, Windows x64, Visual Studio 17.9.1
C++ standard: /std::c++latest
Fmtlib version: 10.2.1

Hi. Thanks for a fantastic library.

While we've generally gotten a few warnings from fmtlib during the last few years, they have decreased over time. On the 10.2.1 release, with our current setup, we only got a single one, a C4365. There might be others, that aren't caught by us, since we disable a few warnings. Our warning level is /W4.

Skjermbilde 2024-02-23 234117

I have not yet been able to create a minimal reproduction case. The following code will compile in a freshly created Visual Studio project, but not in ours:

#define FMT_HEADER_ONLY
#include "fmt/printf.h"

void test
{
   fmt::printf("%s", "test");
}

But the fix for this issue, worked for us. If required I can work more on finding a minimal reproduction case.

@Baardi Baardi closed this Feb 23, 2024
@Baardi Baardi deleted the bamo/fix-warning branch February 23, 2024 23:09
@Baardi
Copy link
Contributor Author

Baardi commented Feb 23, 2024

Closed as the author was wrong. Created a new one: #3865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants