On Mon, 16 Oct 2017, Sam van Kampen via gcc-patches wrote: > +Wbitfield-enum-conversion > +C++ Var(warn_bitfield_enum_conversion) Init(1) Warning > +Warn about struct bit-fields being too small to hold enumerated types.
Any option supported for C++ should also be supported for ObjC++ unless there is a clear reason it cannot work for ObjC++. > +@item -Wbitfield-enum-conversion > +@opindex Wbitfield-enum-conversion > +@opindex Wno-bitfield-enum-conversion > +Warn about a bit-field potentially being too small to hold all values > +of an enumerated type. This warning is enabled by default. The documentation of the option also needs to indicate that it's for C++/ObjC++ only, similar to other such options. The patch also needs to add a testcase to the testsuite that verifies the warnings issues in appropriate cases (and that warnings are not issued when the bit-field is large enough). -- Joseph S. Myers jos...@codesourcery.com