123456789101112131415161718192021222324252627 |
- #!/bin/sh
- # Based on scripts by Thomas Dickey here: https://invisible-island.net/scripts/#compiler_wrappers
- # "originally from Fergus Henderson - fjh@munta.cs.mu.oz.au"
- #This was in gcc-normal
- OPTS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wconversion"
- #And from gcc-strict
- OPTS="$OPTS -Og -W \
- -Wbad-function-cast \
- -Wcast-align \
- -Wcast-qual \
- -Wmissing-declarations \
- -Wnested-externs \
- -Wpointer-arith \
- -Wwrite-strings \
- -ansi \
- -pedantic"
- #And adapted from gcc-stricter
- OPTS="$OPTS -Wformat=2 -fstack-protector-strong"
- #And even more
- OPTS="$OPTS -Wold-style-definition -Wredundant-decls -Wjump-misses-init -Wlogical-op"
- gcc $OPTS "$@"
|