The parsing of enums contains a self-assignment to base_type. But this self-assignment doesn't show very clearly that the variable doesn't need to change and that some compilers complain. So, replace that self-assignment by a null statement. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 4784ff571..795434322 100644 --- a/parse.c +++ b/parse.c @@ -995,7 +995,7 @@ static struct token *parse_enum_declaration(struct token *token, struct symbol * base_type = &bad_ctype; } else if (!is_int_type(base_type)) - base_type = base_type; + ; else if (type_is_ok(&uint_ctype, range)) base_type = &uint_ctype; else if (type_is_ok(&int_ctype, range)) -- 2.20.0