diff --git a/gcc/testsuite/gcc.dg/uninit-pred-9_b.c b/gcc/testsuite/gcc.dg/uninit-pred-9_b.c index 3e544f3f1be4..1877d5d45d6c 100644 --- a/gcc/testsuite/gcc.dg/uninit-pred-9_b.c +++ b/gcc/testsuite/gcc.dg/uninit-pred-9_b.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ -/* { dg-options "-Wuninitialized -O2" } */ +/* The param shuts up a bogus uninitialized warning at line 21. */ +/* { dg-options "-Wuninitialized -O2 --param=logical-op-non-short-circuit=0" } */ int g; void bar(); @@ -17,7 +18,7 @@ int foo (int n, int l, int m, int r) if (l > 100) if ( (n <= 9) && (m < 100) && (r < 19) ) - blah(v); /* { dg-bogus "uninitialized" "bogus warning" { xfail *-*-* } } */ + blah(v); /* { dg-bogus "uninitialized" "bogus warning" } */ if ( (n <= 8) && (m < 99) && (r < 19) ) blah(v); /* { dg-bogus "uninitialized" "pr101674" } */