diff options
author | Mike Sinkovsky <msink@permonline.ru> | 2017-01-18 16:09:09 +0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-18 21:22:47 +0200 |
commit | dac8351ff1b749203d094a9acf049621ce4f5e61 (patch) | |
tree | 806d85d6e6a7c0ac067b44c47de42b9bd8d0d6e6 | |
parent | c9423cc3a80a713d647b7d73797101a288d7848f (diff) | |
download | meson-dac8351ff1b749203d094a9acf049621ce4f5e61.zip meson-dac8351ff1b749203d094a9acf049621ce4f5e61.tar.gz meson-dac8351ff1b749203d094a9acf049621ce4f5e61.tar.bz2 |
cleanup: Unbound local variable
-rw-r--r-- | mesonbuild/backend/vs2010backend.py | 1 | ||||
-rwxr-xr-x | tools/cmake2meson.py | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 525b7f0..61f755b 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -882,7 +882,6 @@ class Vs2010Backend(backends.Backend): header, impl, suffix = pch_sources[lang] relpath = os.path.join(proj_to_src_dir, impl) inc_cl = ET.SubElement(inc_src, 'CLCompile', Include=relpath) - lang = Vs2010Backend.lang_from_source_file(s) pch = ET.SubElement(inc_cl, 'PrecompiledHeader') pch.text = 'Create' pch_out = ET.SubElement(inc_cl, 'PrecompiledHeaderOutputFile') diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index 80bcaa4..eae6344 100755 --- a/tools/cmake2meson.py +++ b/tools/cmake2meson.py @@ -278,6 +278,7 @@ class Converter: for o in self.options: (optname, description, default) = o if default is None: + typestr = '' defaultstr = '' else: if default == 'OFF': |