aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-08-14 18:32:29 +0200
committerTom de Vries <tdevries@suse.de>2023-08-14 18:32:29 +0200
commit7f7ecb46c1a863e46c76214d2bc8793b85f796ac (patch)
treebd0931be3caf1e4d719a758f157833e96bc86c38 /gdb/python
parent980111642db44891500f53c12a939487d95deb68 (diff)
downloadgdb-7f7ecb46c1a863e46c76214d2bc8793b85f796ac.zip
gdb-7f7ecb46c1a863e46c76214d2bc8793b85f796ac.tar.gz
gdb-7f7ecb46c1a863e46c76214d2bc8793b85f796ac.tar.bz2
[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 <tom@tromey.com>
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-param.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c
index 3bae2d4..4ef13f8 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. */