X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=63b30555025e48181df38474438613b8e5cc8945;hb=653241de1eb5b9abe21cb6feb036df202d388c68;hp=3ee8aaf2b8205617fa154cf3f8f8431965a6ae58;hpb=24f67d1f97861e57c14baafde0ed2752a102668c;p=fio.git diff --git a/configure b/configure index 3ee8aaf2..63b30555 100755 --- a/configure +++ b/configure @@ -2548,7 +2548,7 @@ fi print_config "__kernel_rwf_t" "$__kernel_rwf_t" ########################################## -# check if gcc has -Wimplicit-fallthrough +# check if gcc has -Wimplicit-fallthrough=2 fallthrough="no" cat > $TMPC << EOF int main(int argc, char **argv) @@ -2556,10 +2556,10 @@ int main(int argc, char **argv) return 0; } EOF -if compile_prog "-Wimplicit-fallthrough" "" "-Wimplicit-fallthrough"; then +if compile_prog "-Wimplicit-fallthrough=2" "" "-Wimplicit-fallthrough=2"; then fallthrough="yes" fi -print_config "-Wimplicit-fallthrough" "$fallthrough" +print_config "-Wimplicit-fallthrough=2" "$fallthrough" ########################################## # check for MADV_HUGEPAGE support