File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 401401 continue
402402 fi
403403 compiler_version=$( echo " $i =" $( $i -dumpversion) )
404- if [ " $compiler_version " == " clang=4.2.1" ]
405- then
406- # one of my versions of clang complains about some stuff in stdio.h and stdarg.h ...
407- TEST_CFLAGS=" -Wno-typedef-redefinition"
408- else
409- TEST_CFLAGS=" "
410- fi
404+ case " $compiler_version " in
405+ clang* =4.2.1)
406+ # one of my versions of clang complains about some stuff in stdio.h and stdarg.h ...
407+ TEST_CFLAGS=" -Wno-typedef-redefinition"
408+ ;;
409+ gcc* =9.* )
410+ # gcc 9 seems to sometimes think that variables are uninitialized, but they are.
411+ TEST_CFLAGS=" -Wno-maybe-uninitialized"
412+ ;;
413+ * )
414+ TEST_CFLAGS=" "
415+ ;;
416+ esac
411417 echo $compiler_version
412418
413419 for a in " ${archflags[@]} "
You can’t perform that action at this time.
0 commit comments