diff --git a/filter/config.Y b/filter/config.Y index 294da490..ce11e45d 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -72,7 +72,7 @@ type: switch ($1) { default: cf_error( "You can't create sets of this type." ); - case T_INT: case T_IP: case T_PREFIX: case T_PAIR: + case T_INT: case T_IP: case T_PREFIX: case T_PAIR: ; } $$ = $1 | T_SET; } diff --git a/nest/a-path.c b/nest/a-path.c index 0c467551..1b08f809 100644 --- a/nest/a-path.c +++ b/nest/a-path.c @@ -173,7 +173,7 @@ as_path_match(struct adata *path, struct f_path_mask *mask) } if (!asterisk) return 0; - okay: + okay: ; } break; diff --git a/nest/config.Y b/nest/config.Y index 0f52ce4f..1c5cf92d 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -76,6 +76,7 @@ newtab: TABLE SYM { CF_ADDTO(conf, proto) proto_start: PROTOCOL + ; proto_name: /* EMPTY */ { @@ -225,7 +226,7 @@ password_list: CF_CLI_HELP(SHOW, ..., [[Show status information]]) CF_CLI(SHOW STATUS,,, [[Show router status]]) -{ cmd_show_status(); } +{ cmd_show_status(); } ; CF_CLI(SHOW PROTOCOLS, optsym, [], [[Show routing protocols]]) { proto_show($3, 0); } ; @@ -363,6 +364,7 @@ CF_CLI(RESTART, proto_patt, | \"\" | all, [[Restart protocol CF_CLI_HELP(DEBUG, ..., [[Control protocol debugging]]) CF_CLI(DEBUG, proto_patt debug_mask, ( | | all) (all | off | { states | routes | filters | events | packets }), [[Control protocol debugging]]) { proto_debug($2, $3); } + ; proto_patt: SYM { $$ = $1->name; } diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index 82a180aa..ba3efec4 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -471,7 +471,7 @@ bgp_get_bucket(struct bgp_proto *p, ea_list *attrs, int originate) d->u.ptr = z; break; } - default: + default: ; } d++; new->count++;