[gdb/build] Remove superfluous variable param_types in gdb/python/py-param.c
authorTom de Vries <tdevries@suse.de>
Mon, 14 Aug 2023 16:32:29 +0000 (18:32 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 14 Aug 2023 16:32:29 +0000 (18:32 +0200)
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>
gdb/python/py-param.c

index 3bae2d44ad9822ea7e00a5db0dca86cffc6c9a6a..4ef13f8b24cd88d3881165baceaeb7883f846a5e 100644 (file)
@@ -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.  */