From: Jakub Jelinek Date: Thu, 25 Apr 2019 12:18:07 +0000 (+0200) Subject: re PR c++/44648 (missing -Wunused warning on a const variable in if statement) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60a893dbb485218b1994faf1506d9ce772fd9edf;p=gcc.git re PR c++/44648 (missing -Wunused warning on a const variable in if statement) PR c++/44648 * g++.dg/warn/Wunused-var-35.C: Remove xfail. From-SVN: r270572 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f1291f11c52..60357ebb124 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-04-25 Jakub Jelinek + + PR c++/44648 + * g++.dg/warn/Wunused-var-35.C: Remove xfail. + 2019-04-25 Richard Biener PR middle-end/90194 diff --git a/gcc/testsuite/g++.dg/warn/Wunused-var-35.C b/gcc/testsuite/g++.dg/warn/Wunused-var-35.C index 6e1308c8e03..e257e63125a 100644 --- a/gcc/testsuite/g++.dg/warn/Wunused-var-35.C +++ b/gcc/testsuite/g++.dg/warn/Wunused-var-35.C @@ -11,9 +11,8 @@ int main() else return 1; - if (const bool b2 = 1) // { dg-warning "\\\[-Wunused-variable\\\]" "bug" { xfail c++98_only } } + if (const bool b2 = 1) // { dg-warning "\\\[-Wunused-variable\\\]" } return 0; else return 1; } -