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])