Skip to content

Doesn't compile with Clang 7.0.0 #439

Open
@khang06

Description

@khang06

Hey, I'm trying to compile libui on Clang 7.0.0 on MSYS2 MinGW 64-bit. However, I get this error.

H:/Github/libui/windows/areadraw.cpp:81:7: error: case value evaluates to 2291728396, which cannot be narrowed to type 'HRESULT' (aka 'long') [-Wc++11-narrowing]
        case D2DERR_RECREATE_TARGET:
             ^
C:\msys64\mingw64\x86_64-w64-mingw32\include\d2derr.h:30:33: note: expanded from macro 'D2DERR_RECREATE_TARGET'
#define D2DERR_RECREATE_TARGET   0x8899000C

It compiles fine with GCC 8.2.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions