metrowerks: Pass warning flags to all subtools

The "on" option is documented as passing the warning flags to all
subtools, and implies "most".
The default in the majority of projects is -warnings on,nocmdline, which
I'd take to be the equivalent of -Wall -Wextra, there isn't really an
inbetween.
pull/13730/head
mid-kid 2 months ago committed by Jussi Pakkanen
parent aed67bbb68
commit ddc03e5ab3
  1. 11
      mesonbuild/compilers/mixins/metrowerks.py

@ -179,13 +179,12 @@ class MetrowerksCompiler(Compiler):
self.base_options = {
OptionKey(o) for o in ['b_pch', 'b_ndebug']}
default_warn_args: T.List[str] = []
self.warn_args: T.Dict[str, T.List[str]] = {
'0': ['-w', 'off'],
'1': default_warn_args,
'2': default_warn_args + ['-w', 'most'],
'3': default_warn_args + ['-w', 'all'],
'everything': default_warn_args + ['-w', 'full']}
'0': ['-warnings', 'off'],
'1': [],
'2': ['-warnings', 'on,nocmdline'],
'3': ['-warnings', 'on,all'],
'everything': ['-warnings', 'on,full']}
def depfile_for_object(self, objfile: str) -> T.Optional[str]:
# Earlier versions of these compilers do not support specifying

Loading…
Cancel
Save