Skip to content

Warning when compiling with Microsoft compiler #157

@albert-github

Description

@albert-github

With the Microsoft compiler (Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29914 for x64) we get the warning like:

warning C4191 'operator': unsafe conversion from 'type_of_expression' to 'type_required'

for:

static CreateSymbolicLinkW_fp api_call = reinterpret_cast<CreateSymbolicLinkW_fp>(GetProcAddress(GetModuleHandleW(L"kernel32.dll"), "CreateSymbolicLinkW"));

and

static CreateHardLinkW_fp api_call = reinterpret_cast<CreateHardLinkW_fp>(GetProcAddress(GetModuleHandleW(L"kernel32.dll"), "CreateHardLinkW"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsWindows platform is affectedavailable on masterFix is done on master branch, issue closed on next releaseenhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions