diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-20 22:19:09 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-20 22:19:09 +0000 |
commit | 4ed985ad373f7c0bd42de2c4a8b733b2a46cf7e5 (patch) | |
tree | 9fa44dfd3da2e31ee99082bb260ee866f5581904 /usr.bin/rpcgen | |
parent | 08f5c79277a690306424258f125806865895b018 (diff) |
Add 'default:' cases to switch statements that gcc whines about.
ok jung@
Diffstat (limited to 'usr.bin/rpcgen')
-rw-r--r-- | usr.bin/rpcgen/rpc_cout.c | 7 | ||||
-rw-r--r-- | usr.bin/rpcgen/rpc_hout.c | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/usr.bin/rpcgen/rpc_cout.c b/usr.bin/rpcgen/rpc_cout.c index 0a76c95d791..62b785f8832 100644 --- a/usr.bin/rpcgen/rpc_cout.c +++ b/usr.bin/rpcgen/rpc_cout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_cout.c,v 1.26 2016/12/20 21:10:29 krw Exp $ */ +/* $OpenBSD: rpc_cout.c,v 1.27 2016/12/20 22:19:08 krw Exp $ */ /* $NetBSD: rpc_cout.c,v 1.6 1996/10/01 04:13:53 cgd Exp $ */ /* @@ -99,6 +99,8 @@ emit(def) case DEF_TYPEDEF: emit_typedef(def); break; + default: + break; } print_trailer(); } @@ -678,6 +680,9 @@ emit_inline(decl, flag) decl->name, decl->array_max); emit_single_in_line(decl, flag, REL_VECTOR); fprintf(fout, "\t\t\t\t}\n\t\t\t}\n"); + break; + default: + break; } } diff --git a/usr.bin/rpcgen/rpc_hout.c b/usr.bin/rpcgen/rpc_hout.c index a5e2839dbb9..096909c012f 100644 --- a/usr.bin/rpcgen/rpc_hout.c +++ b/usr.bin/rpcgen/rpc_hout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_hout.c,v 1.21 2012/12/05 23:20:26 deraadt Exp $ */ +/* $OpenBSD: rpc_hout.c,v 1.22 2016/12/20 22:19:08 krw Exp $ */ /* $NetBSD: rpc_hout.c,v 1.4 1995/06/11 21:49:55 pk Exp $ */ /* @@ -89,6 +89,8 @@ print_datadef(def) case DEF_CONST: pconstdef(def); break; + default: + break; } if (def->def_kind != DEF_PROGRAM && def->def_kind != DEF_CONST) { pxdrfuncdecl(def->def_name, @@ -107,6 +109,8 @@ print_funcdef(def) fprintf(fout, "\n"); pprogramdef(def); break; + default: + break; } } |