bombela / backward-cpp

A beautiful stack trace pretty printer for C++
MIT License
3.66k stars 466 forks source link

Fix MSVC warning C4996: 'getenv': This function or variable may be unsafe #293

Open ghosty141 opened 1 year ago

ghosty141 commented 1 year ago

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!