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

warning C4127: conditional expression is constant #2210

Closed
apache-hb opened this issue Apr 5, 2021 · 0 comments
Closed

warning C4127: conditional expression is constant #2210

apache-hb opened this issue Apr 5, 2021 · 0 comments

Comments

@apache-hb
Copy link
Contributor

building the latest commit (95da484) with /W4 with msvc 19.27.29111 yields the following diagnostic

fmt\core.h(399): warning C4127: conditional expression is constant
fmt\core.h(399): note: consider using 'if constexpr' statement instead
fmt\core.h(398): note: while compiling class template member function 'fmt::v7::basic_string_view<wchar_t>::basic_string_view(const Char *)'
        with
        [
            Char=wchar_t
        ]
fmt\src\os.cc(126): note: see reference to function template instantiation 'fmt::v7::basic_string_view<wchar_t>::basic_string_view(const Char *)' being compiled
        with
        [
            Char=wchar_t
        ]
fmt\format.h(1222): note: see reference to class template instantiation 'fmt::v7::basic_string_view<wchar_t>' being compiled
apache-hb added a commit to apache-hb/fmt that referenced this issue Apr 5, 2021
@vitaut vitaut closed this as completed Apr 7, 2021
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

No branches or pull requests

2 participants