summaryrefslogtreecommitdiffstats
path: root/recipes/netkit-rpc/netkit-rpc/gcc4.patch
blob: c3ba7d94c3523a5cada8e198ffe0ad7b8f122c42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- netkit-rpc-0.17/rpcgen/rpc_cout.c~gcc4
+++ netkit-rpc-0.17/rpcgen/rpc_cout.c
@@ -101,8 +101,6 @@
 	case DEF_TYPEDEF:
 		emit_typedef(def);
 		break;
-	default:
-	  /* can't happen */
 	}
 	print_trailer();
 }
@@ -664,9 +662,6 @@
 	   decl->name,decl->array_max);
   emit_single_in_line(decl,flag,REL_VECTOR);
     f_print(fout,"\t\t   }\n\t\t };\n");
-
-  default:
-    /* ?... do nothing I guess */
   }
 }
 
--- netkit-rpc-0.17/rpcgen/rpc_hout.c~gcc4
+++ netkit-rpc-0.17/rpcgen/rpc_hout.c
@@ -106,8 +106,6 @@
 		f_print(fout, "\n");
 		pprogramdef(def);
 		break;
-	  default:
-	    /* ?... shouldn't happen I guess */
 	}
 }