diff options
| author | Simon Marchi <simon.marchi@polymtl.ca> | 2026-02-20 21:40:54 -0500 |
|---|---|---|
| committer | Simon Marchi <simon.marchi@polymtl.ca> | 2026-02-23 08:21:46 -0500 |
| commit | 2a2b24ecc13988a6d87619f53b36faa2bcb61beb (patch) | |
| tree | 2e24a608aed8c3d20d36f19bc8ff61440727d21a /gdb | |
| parent | 7fc4f93e286e4222e03e16491459fdaeeee210be (diff) | |
| download | binutils-master.zip binutils-master.tar.gz binutils-master.tar.bz2 | |
They are unreachable because there is a return statement in all possible code
paths before.
Change-Id: I9db2f41f8017380c0c79f97af9bbf8734038ba9a
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb')
| -rw-r--r-- | gdb/python/py-frame.c | 4 | ||||
| -rw-r--r-- | gdb/python/py-objfile.c | 4 | ||||
| -rw-r--r-- | gdb/python/py-unwind.c | 2 |
3 files changed, 0 insertions, 10 deletions
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c index 9d122f1..c854879 100644 --- a/gdb/python/py-frame.c +++ b/gdb/python/py-frame.c @@ -603,8 +603,6 @@ frapy_level (PyObject *self, PyObject *args) { return gdbpy_handle_gdb_exception (nullptr, except); } - - Py_RETURN_NONE; } /* The language for this frame. */ @@ -626,8 +624,6 @@ frapy_language (PyObject *self, PyObject *args) { return gdbpy_handle_gdb_exception (nullptr, except); } - - Py_RETURN_NONE; } /* The static link for this frame. */ diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c index 16584f7..5d7cfe8 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -483,8 +483,6 @@ objfpy_lookup_global_symbol (PyObject *self, PyObject *args, PyObject *kw) { return gdbpy_handle_gdb_exception (nullptr, except); } - - Py_RETURN_NONE; } /* Implementation of @@ -518,8 +516,6 @@ objfpy_lookup_static_symbol (PyObject *self, PyObject *args, PyObject *kw) { return gdbpy_handle_gdb_exception (nullptr, except); } - - Py_RETURN_NONE; } /* Implement repr() for gdb.Objfile. */ diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index d160db1..09af3e7 100644 --- a/gdb/python/py-unwind.c +++ b/gdb/python/py-unwind.c @@ -599,8 +599,6 @@ pending_framepy_language (PyObject *self, PyObject *args) { return gdbpy_handle_gdb_exception (nullptr, except); } - - Py_RETURN_NONE; } /* Implement PendingFrame.find_sal(). Return the PendingFrame's symtab and |
