Re: [PATCH v3] c: Implement new -Wenum-int-mismatch warning [PR105131]

2022-05-18 Thread Joseph Myers
On Wed, 18 May 2022, Marek Polacek via Gcc-patches wrote: > I've extended the tests to use an enum with __attribute__ ((__packed__)) to > test the case when the underlying type is (un)signed char. But it seems like > we can't have underlying types wider than int. I've also included two tests > w

[PATCH v3] c: Implement new -Wenum-int-mismatch warning [PR105131]

2022-05-18 Thread Marek Polacek via Gcc-patches
On Wed, May 18, 2022 at 08:58:02PM +, Joseph Myers wrote: > On Wed, 18 May 2022, Marek Polacek via Gcc-patches wrote: > > > diff --git a/gcc/testsuite/gcc.dg/Wenum-int-mismatch-1.c > > b/gcc/testsuite/gcc.dg/Wenum-int-mismatch-1.c > > new file mode 100644 > > index 000..f71a308bc19 >