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

wepoll ALL_BUILD fails due to cast warnings on Visual Studio 2022 #38

Open
rzhao271 opened this issue Jun 14, 2024 · 0 comments
Open

wepoll ALL_BUILD fails due to cast warnings on Visual Studio 2022 #38

rzhao271 opened this issue Jun 14, 2024 · 0 comments

Comments

@rzhao271
Copy link

Setup: Windows 11, cmake, Visual Studio 2022

When I try rebuilding the ALL_BUILD target from the master branch, I get the following warnings:

Warning C4191 'type cast': unsafe conversion from 'FARPROC' to 'NTSTATUS (__cdecl *)(HANDLE,PIO_STATUS_BLOCK,PIO_STATUS_BLOCK)' Making a function call using the resulting pointer may cause your program to fail. wepoll.dll C:\Users\raymondzhao\work\wepoll\src\nt.c 36

The build then stops because of the following errors:

Error C2220 the following warning is treated as an error wepoll.dll C:\Users\raymondzhao\work\wepoll\src\nt.c 36

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