mstorsjo wrote:

> I'm not opposed to this change but we might want to report that to GCC, it is 
> a false positive

GCC considers that enums potentially can have any representable value - this is 
a known longtime difference between GCC and Clang to the point that we have it 
mentioned in our 
[CodingStandards](https://github.com/llvm/llvm-project/blob/main/llvm/docs/CodingStandards.rst#don-t-use-default-labels-in-fully-covered-switches-over-enumerations).

https://github.com/llvm/llvm-project/pull/159330
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to