This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch]: Remove dead return statement in cp/calls.c


There's a dead return statement in cp/call.c:add_builtin_candidate. 
I only spotted it because of a warning issued by the tree
flowgraph builder.

I'm not really sure if this the right patch. But that return
statement is definitely unreachable.

Diego.


2001-05-25  Diego Novillo  <dnovillo@redhat.com>

	* call.c (add_builtin_candidate): Remove dead return statement.

Index: call.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/call.c,v
retrieving revision 1.270
diff -d -c -p -r1.270 call.c
*** call.c	2001/05/22 00:31:35	1.270
--- call.c	2001/05/25 15:07:14
*************** add_builtin_candidate (candidates, code,
*** 1945,1953 ****
  	 types are TYPE2.  */
  	break;
  
-       /* These arguments do not make for a legal overloaded operator.  */
-       return candidates;
- 
      default:
        my_friendly_abort (367);
      }
--- 1945,1950 ----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]