From b2d82f2df1d6b99663181b41aef6b55c86ea8281 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 27 Sep 2014 02:21:33 +0200 Subject: [PATCH] re PR ipa/60665 (gcc/ipa-devirt.c:1510:7: warning: variable 'can_refer' is used uninitialized whenever '?:' condition is false) PR ipa/60665 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning. From-SVN: r215656 --- gcc/ChangeLog | 5 +++++ gcc/ipa-devirt.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 203e1f53e07..2c416972b0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-26 Jan Hubicka + + PR ipa/60665 + * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning. + 2014-09-26 Jan Hubicka PR ipa/62121 diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index cbc9dd58906..dc47e99f6b5 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -2217,7 +2217,7 @@ possible_polymorphic_call_targets (tree otr_type, unsigned int i; tree binfo, target; bool complete; - bool can_refer; + bool can_refer = false; bool skipped = false; otr_type = TYPE_MAIN_VARIANT (otr_type); -- 2.30.2