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 MSVC warning C4996: 'getenv': This function or variable may be unsafe #293

Open
ghosty141 opened this issue Apr 4, 2023 · 0 comments

Comments

@ghosty141
Copy link

warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

It would be great if this could either get fixed or ignored by adding _CRT_SECURE_NO_WARNINGS to the compile_definitions. This would make backward-cpp warning free!

@ghosty141 ghosty141 changed the title Fix warning C4996: 'getenv': This function or variable may be unsafe Fix MSVC warning C4996: 'getenv': This function or variable may be unsafe Apr 4, 2023
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

1 participant