Building breakpad with clang for windows.

11 views
Skip to first unread message

Horadilu Hayanami

unread,
Oct 28, 2024, 11:13:12 AMOct 28
to Google Breakpad Development
Hi, got an issue when compiling breakpad with clang for windows.

Here's the issue:
/vcpkg/buildtrees/breakpad/src/2023.06.01-e00c2a36b7.clean/src/processor/minidump_processor.cc(1407,14): error: case value evaluates to -1073741680, which cannot be narrowed to type 'uint32_t' (aka 'unsigned int') [-Wc++11-narrowing]
 1407 |         case MD_EXCEPTION_CODE_WIN_FLOAT_INVALID_OPERATION:
      |              ^

I fixed that by forcing the enum type to uint32_t:
typedef enum : uint32_t {

https://github.com/Nemirtingas/vcpkg/commit/a9fe24edf1e27b7196695cab93f219b7cf6030c4

Would you like to fix this in breakpad's sources?
Reply all
Reply to author
Forward
0 new messages