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

Maintenance: Resolve Build Warnings (Windows) #119

Open
dreamsyntax opened this issue Apr 26, 2024 · 0 comments
Open

Maintenance: Resolve Build Warnings (Windows) #119

dreamsyntax opened this issue Apr 26, 2024 · 0 comments

Comments

@dreamsyntax
Copy link
Collaborator

From Windows build output:

D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\DolphinProcess\Windows\WindowsDolphinProcess.cpp(20,29): warning C4996: 'std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the <codecvt> header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to suppress this warning. [D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\bin\dolphin-memory-engine.vcxproj]
  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.38.33130\include\codecvt(34,1):
  see declaration of 'std::codecvt_utf8'
  
D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\DolphinProcess\Windows\WindowsDolphinProcess.cpp(20,8): warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator<char>>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the <codecvt> header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to suppress this warning. [D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\bin\dolphin-memory-engine.vcxproj]
  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.38.33130\include\xlocbuf(303,1):
  see declaration of 'std::wstring_convert'
  
D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\DolphinProcess\Windows\WindowsDolphinProcess.cpp(20,52): warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator<char>>::wstring_convert': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the <codecvt> header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to suppress this warning. [D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\bin\dolphin-memory-engine.vcxproj]
D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\DolphinProcess\Windows\WindowsDolphinProcess.cpp(21,16): warning C4996: 'std::wstring_convert<std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>,wchar_t,std::allocator<wchar_t>,std::allocator<char>>::from_bytes': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the <codecvt> header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to suppress this warning. [D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\bin\dolphin-memory-engine.vcxproj]
D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\DolphinProcess\Windows\WindowsDolphinProcess.cpp(34,54): 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. [D:\a\dolphin-memory-engine\dolphin-memory-engine\Source\bin\dolphin-memory-engine.vcxproj]
@dreamsyntax dreamsyntax changed the title Maintenance: Resolve Build Warnings Maintenance: Resolve Build Warnings (Windows) Apr 26, 2024
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