This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Warning elimination patches in cp/call.c
- To: egcs at cygnus dot com
- Subject: Warning elimination patches in cp/call.c
- From: Peter Schmid <schmid at ltoi dot iap dot physik dot tu-darmstadt dot de>
- Date: Mon, 9 Mar 1998 21:14:12 +0100 (MEST)
While compiling cp/call.c I get many warnings like:
call.c:3344: warning: enumeration value `NOT_BUILT_IN' not handled in
switch.
The following patch silences these warnings.
Peter Schmid
Mon Mar 9 21:10:13 1998 Peter Schmid <schmid@ltoi.iap.physik.tu-darmstadt.de>
* call.c: (build_over_call) Add default case in enumeration switch
*** gcc/cp/call.c~ Mon Mar 9 11:31:33 1998
--- gcc/cp/call.c Mon Mar 9 21:05:35 1998
*************** build_over_call (fn, convs, args, flags)
*** 3341,3346 ****
--- 3341,3350 ----
if (converted_args == 0)
return integer_zero_node;
return build_unary_op (ABS_EXPR, TREE_VALUE (converted_args), 0);
+
+ default:
+ break;
+
}
fn = build_call (fn, TREE_TYPE (TREE_TYPE (TREE_TYPE (fn))), converted_args);