From 7f7ecb46c1a863e46c76214d2bc8793b85f796ac Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Mon, 14 Aug 2023 18:32:29 +0200 Subject: [PATCH] [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 --- gdb/python/py-param.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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. */ -- 2.30.2