aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/depfixer.py
diff options
context:
space:
mode:
authorMike Sinkovsky <msink@permonline.ru>2017-01-03 14:43:02 +0500
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-03 13:34:39 -0500
commit079e43f70b639c2c4d9ef345bfa916999f3c0508 (patch)
tree480c3c9c6c259c0f430a05cd1d2cc7e5f8d60fe3 /mesonbuild/scripts/depfixer.py
parentc025c71ae282cfe33e9fe5d8042e5b511808f2de (diff)
downloadmeson-079e43f70b639c2c4d9ef345bfa916999f3c0508.zip
meson-079e43f70b639c2c4d9ef345bfa916999f3c0508.tar.gz
meson-079e43f70b639c2c4d9ef345bfa916999f3c0508.tar.bz2
fix 'unreachable code' warnings
Diffstat (limited to 'mesonbuild/scripts/depfixer.py')
-rw-r--r--mesonbuild/scripts/depfixer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py
index c9ee36c..193d5b6 100644
--- a/mesonbuild/scripts/depfixer.py
+++ b/mesonbuild/scripts/depfixer.py
@@ -220,7 +220,7 @@ class Elf(DataSizes):
soname = i
if i.d_tag == DT_STRTAB:
strtab = i
- else:
+ if soname is None or strtab is None:
print("This file does not have a soname")
return
self.bf.seek(strtab.val + soname.val)