diff options
author | Gabriel Dos Reis <gdr@nerim.net> | 2002-08-14 17:50:48 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2002-08-14 17:50:48 +0000 |
commit | 77893a23f990867ccef065bb78fdff52b1e906c3 (patch) | |
tree | 459645466df592271d8b79db86db6812117f1f79 /gcc/c-semantics.c | |
parent | 260f91c2927c3850919f8ebdcbc294cfbd04daa9 (diff) | |
download | gcc-77893a23f990867ccef065bb78fdff52b1e906c3.tar.gz |
Fix PR/7566
Fix PR/7566
* c-semantics.c (genrtl_case_label): Don't (mis)use
warning_with_decl.
From-SVN: r56329
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r-- | gcc/c-semantics.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 32fae448210..90b3cc141ac 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -673,8 +673,7 @@ genrtl_case_label (case_label) if (cleanup) { static int explained = 0; - warning_with_decl (TREE_PURPOSE (cleanup), - "destructor needed for `%#D'"); + warning ("destructor needed for `%#D'", (TREE_PURPOSE (cleanup))); warning ("where case label appears here"); if (!explained) { |