xref: /freebsd/contrib/bmake/unit-tests/opt-warnings-as-errors.mk (revision d4eeb02986980bf33dd56c41ceb9fc5f180c0d47)
1# $NetBSD: opt-warnings-as-errors.mk,v 1.5 2021/01/27 00:02:38 rillig Exp $
2#
3# Tests for the -W command line option, which turns warnings into errors.
4#
5# Even in -W mode, a .warning is not completely equivalent to an .error.
6# First, the word "warning" is still printed, and second, parsing continues
7# after a failed warning, whereas it would stop immediately at the first
8# .error.
9
10.MAKEFLAGS: -W
11
12.warning message 1
13.warning message 2
14
15_!=	echo 'parsing continues' 1>&2
16
17all:
18	@:;
19