From 1b3bd2613822b8d903faf56c90eb94fc21c13435 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 24 Sep 2021 14:07:22 +0300 Subject: [PATCH] Fix python dead code warnings Fixes ``` contrib/auto_gdb/log_size.py:22: unused variable 'from_tty' (100% confidence) contrib/auto_gdb/used_size.py:29: unused variable 'from_tty' (100% confidence) ``` --- contrib/auto_gdb/log_size.py | 2 +- contrib/auto_gdb/used_size.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/auto_gdb/log_size.py b/contrib/auto_gdb/log_size.py index 8d5084eef1..4bb84e2eb2 100644 --- a/contrib/auto_gdb/log_size.py +++ b/contrib/auto_gdb/log_size.py @@ -19,7 +19,7 @@ class LogSizeCommand (gdb.Command): def __init__ (self): super (LogSizeCommand, self).__init__ ("logsize", gdb.COMMAND_USER) - def invoke(self, arg, from_tty): + def invoke(self, arg, _from_tty): try: args = gdb.string_to_argv(arg) obj = gdb.parse_and_eval(args[0]) diff --git a/contrib/auto_gdb/used_size.py b/contrib/auto_gdb/used_size.py index 3123eadbe6..9ca88507bb 100644 --- a/contrib/auto_gdb/used_size.py +++ b/contrib/auto_gdb/used_size.py @@ -26,7 +26,7 @@ class UsedSizeCommand (gdb.Command): def get_type(cls, obj_name): return gdb.parse_and_eval(obj_name).type - def invoke(self, arg, from_tty): + def invoke(self, arg, _from_tty): try: args = gdb.string_to_argv(arg) obj = gdb.parse_and_eval(args[1])