aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-06 15:12:43 -0700
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-08-20 18:57:19 +0200
commita3c94956c880fc3fe983251597a3582d394c63be (patch)
tree7572cecd869b9bcf8d5ae6e060dee4e0b8413f2b /mesonbuild
parentabababfb93fd6da6636b51583bc0b8bb8c72f1aa (diff)
downloadmeson-a3c94956c880fc3fe983251597a3582d394c63be.zip
meson-a3c94956c880fc3fe983251597a3582d394c63be.tar.gz
meson-a3c94956c880fc3fe983251597a3582d394c63be.tar.bz2
compilers: Add get_no_warn_args to the base Compiler class
Because it should be defined there.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/compilers.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index c71375b..e23d18e 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1260,6 +1260,10 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
"""Arguments required for a debug build."""
return []
+ def get_no_warn_args(self) -> T.List[str]:
+ """Arguments to completely disable warnings."""
+ return []
+
def get_global_options(lang: str,
comp: T.Type[Compiler],