Skip to content

MSVC warning C4365 with /Wall and FMT_STRING() #2233

Description

@vid512

Any FMT_STRING() usage causes a warning C4365 (un/signed mismatch), when compiling with MSVC (14.28.29910, from Visual Studio 2019) with /Wall:

#include <fmt/format.h>
void test() {
	fmt::format(FMT_STRING("a"));
}

Note: despite being displayed as warning C4365, this particular warning cannot be enabled with just #pragma warning(default:4365). You must use /Wall to trigger it. It also can't be disabled by /Wall /wd4365.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions