[PATCH] remove self-assignment of base_type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux