From e3a93001ef0551aa1c90d962fa6fe2f9519e91ef Mon Sep 17 00:00:00 2001 From: celso Date: Sun, 13 Nov 2022 00:27:16 -0300 Subject: [PATCH] added -Wpedantic to compile.sh --- compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.sh b/compile.sh index 2ac5177..c2eb0b4 100755 --- a/compile.sh +++ b/compile.sh @@ -1,5 +1,5 @@ #!/bin/bash [ -z "${1}" ] && echo "error: no arguments given" && exit 2 [ "${1}" == "clean" ] && rm -v $(ls --color=no -1 | grep -v "\(\.c\|\.sh\)$") && exit -gcc -Wall -Wextra -O2 -g -o "${1:0:-2}" "${1}" +gcc -Wall -Wextra -Wpedantic -O2 -g -o "${1:0:-2}" "${1}" exit