Skip to content

C4244 Warning #376

@ambiennt

Description

@ambiennt

What happened?

Using:
nlohmann/json@11aa5f9
e71e0c2
openssl/openssl@648366a

Compiling with MSVC 19.44.34918.1, and passing /W4 /DJWT_DISABLE_PICOJSON /std:c++latest

Microsoft docs state this warning arises when passing as low as /W2

How To Reproduce?

#include <jwt-cpp/jwt.h>
#include <jwt-cpp/traits/nlohmann-json/defaults.h>

int main() {
    jwt::create(); // *jwt.h(2635,85): warning C4244: 'argument': conversion from 'double' to '__time64_t', possible loss of data
}

Version

0.7.1

What OS are you seeing the problem on?

Windows

What compiler are you seeing the problem on?

MSVC

Relevant log output

*jwt.h(2635,85): warning C4244: 'argument': conversion from 'double' to '__time64_t', possible loss of data

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions