opnsense-src/contrib/bmake/unit-tests/opt-warnings-as-errors.mk
Simon J. Gerraty 148ee84570 Merge bmake-20230622
Merge commit '3e39ce563b9ba25883e5aa37d9799eda9e57c1e0'
2023-06-27 13:57:58 -07:00

20 lines
549 B
Makefile

# $NetBSD: opt-warnings-as-errors.mk,v 1.6 2023/06/01 20:56:35 rillig Exp $
#
# Tests for the -W command line option, which turns warnings into errors.
#
# Even in -W mode, a .warning is not completely equivalent to an .error.
# First, the word "warning" is still printed, and second, parsing continues
# after a failed warning, whereas it would stop immediately at the first
# .error.
.MAKEFLAGS: -W
# expect+1: warning: message 1
.warning message 1
# expect+1: warning: message 2
.warning message 2
_!= echo 'parsing continues' 1>&2
all:
@:;