Checks whether "-Wdelcaration-after-statement" is available in gcc before

trying to use it (simple shell script trick from Shin-Ichi).
This commit is contained in:
William Kendrick 2005-10-13 07:48:20 +00:00
parent 050c23b5ef
commit 905b5552fa
3 changed files with 14 additions and 3 deletions

6
src/test-option.sh Executable file
View file

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