blob: 089156a7ae903f4a198ef1ca4d8758472be55354 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001This fixes an issue when building with gcc 4.x
2
3https://github.com/openembedded/openembedded/tree/master/recipes/netkit-rpc/netkit-rpc
4
Patrick Williamsb9af8752023-01-30 13:28:01 -06005Upstream-Status: Backported
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006
Patrick Williamsb9af8752023-01-30 13:28:01 -06007Signed-off-by: Armin Kuster <akuster808@gmail.com>
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008
9--- netkit-rpc-0.17/rpcgen/rpc_cout.c~gcc4
10+++ netkit-rpc-0.17/rpcgen/rpc_cout.c
11@@ -101,8 +101,6 @@
12 case DEF_TYPEDEF:
13 emit_typedef(def);
14 break;
15- default:
16- /* can't happen */
17 }
18 print_trailer();
19 }
20@@ -664,9 +662,6 @@
21 decl->name,decl->array_max);
22 emit_single_in_line(decl,flag,REL_VECTOR);
23 f_print(fout,"\t\t }\n\t\t };\n");
24-
25- default:
26- /* ?... do nothing I guess */
27 }
28 }
29
30--- netkit-rpc-0.17/rpcgen/rpc_hout.c~gcc4
31+++ netkit-rpc-0.17/rpcgen/rpc_hout.c
32@@ -106,8 +106,6 @@
33 f_print(fout, "\n");
34 pprogramdef(def);
35 break;
36- default:
37- /* ?... shouldn't happen I guess */
38 }
39 }