[llvm-bugs] [Bug 33575] New: Make Wmicrosoft-enum-value useful
llvm-bugs at lists.llvm.org
Fri Jun 23 13:40:06 PDT 2017
Bug ID: 33575
Summary: Make Wmicrosoft-enum-value useful
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvm-bugs at lists.llvm.org
enums in MS mode are signed, but unsigned elsewhere. So if you have an enum
with the highest bit set, it will be negative in MS mode but positive
Wmicrosoft-enum-value currently flags those, but having these enums is very
common in practice, and only a problem when they are compared to 0.
So we should move the warning to comparison time.
https://bugs.chromium.org/p/chromium/issues/detail?id=621097#c2 has half a
patch for that.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs