On 1/30/26 9:04 AM, Philippe Mathieu-Daudé wrote:
Do not allow enum typedef forward-declaration to comply with C99
standard chapter §6.7.2.2 point 4:
Each enumerated type shall be compatible with char, a signed
integer type, or an unsigned integer type. The choice of type
is implementation-defined, but shall be capable of representing
the values of all the members of the enumeration.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
docs/devel/style.rst | 11 +++++++++++
1 file changed, 11 insertions(+)
Shall we modify checkpatch as well, to make sure it doesn't come back?
It's easy to detect with a single line regexp.
Reviewed-by: Pierrick Bouvier <[email protected]>