summaryrefslogtreecommitdiffstats
path: root/build/plugins/check_clang_warnings.py
blob: ef764eed880d3fa24df43e4eebeafb39058db8c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
import ymake


def on_check_clang_warnings(unit, name, *args):
    for item in args:
        if item.startswith('-Wno-') or not item.startswith('-W'):
            ymake.report_configure_error(
                f'Warning tag [[alt1]]{item}[[rst]] is not allowed in call to macro [[alt1]]{name}[[rst]]'
            )