From fe853ee516e1e7b392753a6e8f1f0b9cad6fb54f Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Wed, 4 Dec 2019 16:50:38 +0100 Subject: lgtm: fix Missing call to __init__ during object initialization Either mark the missing calls as intentional, or explicetly call the right __init__ method and avoid mixing super() and explicit base calss calls. --- mesonbuild/compilers/d.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index 907aeec..e84a18f 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -613,6 +613,7 @@ class GnuDCompiler(DCompiler, GnuCompiler): def __init__(self, exelist, version, for_machine: MachineChoice, info: 'MachineInfo', is_cross, exe_wrapper, arch, **kwargs): DCompiler.__init__(self, exelist, version, for_machine, info, is_cross, exe_wrapper, arch, **kwargs) + GnuCompiler.__init__(self, {}) self.id = 'gcc' default_warn_args = ['-Wall', '-Wdeprecated'] self.warn_args = {'0': [], -- cgit v1.1