From: Tom de Vries Date: Mon, 14 Aug 2023 16:32:29 +0000 (+0200) Subject: [gdb/build] Remove superfluous variable param_types in gdb/python/py-param.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f7ecb46c1a863e46c76214d2bc8793b85f796ac;p=binutils-gdb.git [gdb/build] Remove superfluous variable param_types in gdb/python/py-param.c In gdb/python/py-param.c we have: ... enum param_types { ... } param_types; ... which declares both an enum param_types, and an unused variable param_types. Fix this by removing the variable. Tested on x86_64-linux. Approved-By: Tom Tromey --- diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c index 3bae2d44ad9..4ef13f8b24c 100644 --- a/gdb/python/py-param.c +++ b/gdb/python/py-param.c @@ -44,8 +44,7 @@ enum param_types param_zuinteger, param_zuinteger_unlimited, param_enum, -} -param_types; +}; /* Translation from Python parameters to GDB variable types. Keep in the same order as PARAM_TYPES due to C++'s lack of designated initializers. */