From: Jan Hubicka Date: Sat, 27 Sep 2014 00:21:33 +0000 (+0200) Subject: re PR ipa/60665 (gcc/ipa-devirt.c:1510:7: warning: variable 'can_refer' is used unini... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2d82f2df1d6b99663181b41aef6b55c86ea8281;p=gcc.git 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 --- 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);