commit 27bc20af3ec698c55c4b7903339b4354c70516db
parent e46de332c081cba7e27ac8cd8cff07e7b9f34e37
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 26 Oct 2022 13:43:22 +0200
tests/cc: Use correct warning option
The driver uses -W instead of -w because it is the value
commonly used in some compilers to enable warnings.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/cc/error/chktest.sh b/tests/cc/error/chktest.sh
@@ -13,7 +13,7 @@ do
echo $i >> test.log
state=${state:-""}
- (SCCPREFIX=$SCCPREFIX $CC $CFLAGS -w -c $i) 2> $err
+ (SCCPREFIX=$SCCPREFIX $CC $CFLAGS -W -c $i) 2> $err
(echo "/^PATTERN/+;/^\./-w $chk" | ed -s $i) >/dev/null 2>&1
(diff -c $chk $err >> test.log && printf '[PASS]' || printf '[FAIL]'
printf "\t%s\t%s\n" $i $state) | tee -a test.log