You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used parameter -Wextra in g++, it gives a warning:
[Warning] cast between incompatible function types from 'FARPROC' {aka 'long long int ()()'} to 'WINBOOL ()(HANDLE, FILE_INFO_BY_HANDLE_CLASS, LPVOID, DWORD)' {aka 'int ()(void, _FILE_INFO_BY_HANDLE_CLASS, void*, long unsigned int)'} [-Wcast-function-type]
It's on line 175 in rang.hpp:
inlineboolisMsysPty(int fd) noexcept
{
// Dynamic load for binary compability with old Windowsconstauto ptrGetFileInformationByHandleEx
= reinterpret_cast<decltype(&GetFileInformationByHandleEx)>(
GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")),
"GetFileInformationByHandleEx"));
if (!ptrGetFileInformationByHandleEx) {
returnfalse;
}
All the parameters I used under Windows 10 1903, g++ 8.1.0:
g++ -std=c++2a -Wall -Wextra -Dlocal
The text was updated successfully, but these errors were encountered:
Well... Actually I have no idea about how to fix it. It seems that it's a previous problem in Windows API. I should ignore tons of warnings from MSVC library. :)
When I used parameter -Wextra in g++, it gives a warning:
It's on line 175 in rang.hpp:
All the parameters I used under Windows 10 1903, g++ 8.1.0:
g++ -std=c++2a -Wall -Wextra -Dlocal
The text was updated successfully, but these errors were encountered: