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)
```
This commit is contained in:
UdjinM6 2021-09-24 14:07:22 +03:00
parent 078ae49dc7
commit 1b3bd26138
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9
2 changed files with 2 additions and 2 deletions

View File

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

View File

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