diff --git a/configure b/configure index a799be06f..6e60af176 100755 --- a/configure +++ b/configure @@ -601,7 +601,10 @@ process_toolchain() { check_add_cflags -Wimplicit-function-declaration check_add_cflags -Wuninitialized check_add_cflags -Wunused-variable - check_add_cflags -Wunused-but-set-variable + case ${CC} in + *clang*) ;; + *) check_add_cflags -Wunused-but-set-variable ;; + esac enabled extra_warnings || check_add_cflags -Wno-unused-function fi