tuxpaint-pencil-sharpener/src/test-option.sh
William Kendrick 905b5552fa Checks whether "-Wdelcaration-after-statement" is available in gcc before
trying to use it (simple shell script trick from Shin-Ichi).
2005-10-13 07:48:20 +00:00

6 lines
101 B
Bash
Executable file

#!/bin/sh
echo 'main(){}' > dummy.c
gcc $1 dummy.c > /dev/null 2>&1 && echo $1
rm -f dummy.c a.out