Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | This fixes an issue when building with gcc 4.x |
| 2 | |
| 3 | https://github.com/openembedded/openembedded/tree/master/recipes/netkit-rpc/netkit-rpc |
| 4 | |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame^] | 5 | Upstream-Status: Backported |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 6 | |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame^] | 7 | Signed-off-by: Armin Kuster <akuster808@gmail.com> |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 8 | |
| 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 | } |