Revision aa527b65

b/configure
140 140

  
141 141
gcc_flags="-Wold-style-declaration -Wold-style-definition -fstack-protector-all"
142 142
cat > $TMPC << EOF
143
int main(void) { }
143
int main(void) { return 0; }
144 144
EOF
145 145
for flag in $gcc_flags; do
146
    if compile_prog "$QEMU_CFLAGS" "$flag" ; then
146
    echo $testing $flag
147
    if compile_prog "-Werror $QEMU_CFLAGS" "-Werror $flag" ; then
147 148
	QEMU_CFLAGS="$flag $QEMU_CFLAGS"
149
    else
150
        echo disable $flag
148 151
    fi
149 152
done
150 153

  

Also available in: Unified diff