Skip to content

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

@rzhao271

Description

@rzhao271

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions