added -Wpedantic to compile.sh

This commit is contained in:
celso 2022-11-13 00:27:16 -03:00
parent 0fb59f4859
commit e3a93001ef
1 changed files with 1 additions and 1 deletions

View File

@ -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