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

Doesn't compile with Clang 7.0.0 #439

Open
khang06 opened this issue Nov 17, 2018 · 1 comment
Open

Doesn't compile with Clang 7.0.0 #439

khang06 opened this issue Nov 17, 2018 · 1 comment
Milestone

Comments

@khang06
Copy link

khang06 commented Nov 17, 2018

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.

@mischnic
Copy link
Contributor

p7zip has done this: (https://svnweb.freebsd.org/ports/head/archivers/p7zip/files/patch-CPP_Windows_ErrorMsg.cpp?view=markup&pathrev=458172)

	case (DWORD)(D2DERR_RECREATE_TARGET):

(Windows is a mess 🙈)

@andlabs andlabs added this to the Alpha 5 milestone Dec 31, 2018
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

3 participants