8000 -Wdeprecated-declarations Warning · Issue #377 · Thalhammer/jwt-cpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to 8000 content
-Wdeprecated-declarations Warning #377
Open
@ambiennt

Description

@ambiennt

What happened?

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

Compiling with Clang-cl 20.1.1, and passing /W4 /DJWT_DISABLE_PICOJSON /std:c++latest

How To Reproduce?

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

int main() {
    // *jwt.h(3530,70): warning : 'strerror' is deprecated: This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
    // *jwt.h(3546,27): warning : 'wcrtomb' is deprecated: This function or variable may be unsafe. Consider using wcrtomb_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
    jwt::create();
}

Version

0.7.1

What OS are you seeing the problem on?

Windows

What compiler are you seeing the problem on?

Clang

Relevant log output

*jwt.h(3530,70): warning : 'strerror' is deprecated: This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]
*jwt.h(3546,27): warning : 'wcrtomb' is deprecated: This function or variable may be unsafe. Consider using wcrtomb_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [-Wdeprecated-declarations]

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0