Improve 1992/buzzard.1/try.sh

Now allows one to pass in CC=foo, defaulting to cc.

Added -Wno-implicit-int to CSILENCE.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-14 02:46:56 -08:00
1 parent acc2af44c9
commit 649239f3fa
2 files changed
+14 -2

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-pedantic \
-Wno-unused-parameter -Wno-deprecated-non-prototype
-Wno-unused-parameter -Wno-deprecated-non-prototype -Wno-implicit-int
# Common C compiler warning flags
#
+13 -1
View File
@@ -1,6 +1,18 @@
#!/usr/bin/env bash
#
# try.sh - show IOCCC winner 1992/buzzard.1
make all >/dev/null || exit 1
# make sure CC is set so that when we do make CC="$CC" it isn't empty. Doing it
# this way allows us to have the user specify a different compiler in an easy
# way.
if [[ -z "$CC" ]]; then
CC="cc"
fi
make CC="$CC" all >/dev/null || exit 1
# clear screen so only entry is shown
#
clear
echo "$ ./buzzard.1 0 10" 1>&2
./buzzard.1 0 10