2021-02-11 01:51:11 +00:00
|
|
|
# $NetBSD: opt-warnings-as-errors.mk,v 1.5 2021/01/27 00:02:38 rillig Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
|
|
|
# Tests for the -W command line option, which turns warnings into errors.
|
2021-02-11 01:51:11 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2020-09-05 16:11:04 +00:00
|
|
|
|
2020-11-20 03:54:37 +00:00
|
|
|
.MAKEFLAGS: -W
|
|
|
|
|
2020-09-05 16:11:04 +00:00
|
|
|
.warning message 1
|
|
|
|
.warning message 2
|
|
|
|
|
|
|
|
_!= echo 'parsing continues' 1>&2
|
|
|
|
|
|
|
|
all:
|
|
|
|
@:;
|