From 60a893dbb485218b1994faf1506d9ce772fd9edf Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 25 Apr 2019 14:18:07 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/warn/Wunused-var-35.C | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) 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; } - -- 2.30.2