diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-10-13 11:51:11 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-13 11:51:11 -0400 | 
| commit | 02cbd978011ca0a8afe729ac67f7c00009d5ca0d (patch) | |
| tree | a43347ff1519213c9176d5ad5515ec3468f4eaad /ldpd/init.c | |
| parent | 4fa73b6572df03fd9df7ffddf279abbcf8ad6b9c (diff) | |
| parent | 7d67b9ff28d09de58c632f80ef7d330e45e698f6 (diff) | |
Merge pull request #14561 from idryzhov/implicit-fallthrough
build: add -Wimplicit-fallthrough
Diffstat (limited to 'ldpd/init.c')
| -rw-r--r-- | ldpd/init.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/init.c b/ldpd/init.c index f0cb98e5c0..c34d18f8b2 100644 --- a/ldpd/init.c +++ b/ldpd/init.c @@ -229,7 +229,7 @@ send_capability(struct nbr *nbr, uint16_t capability, int enable)  		 * Announcement Parameter in Capability messages sent to  		 * its peers".  		 */ -		/* FALLTHROUGH */ +		fallthrough;  	default:  		fatalx("send_capability: unsupported capability");  	} @@ -333,7 +333,7 @@ recv_capability(struct nbr *nbr, char *buf, uint16_t len)  			 * parameter and process any other Capability Parameters  			 * in the message".  			 */ -			/* FALLTHROUGH */ +			fallthrough;  		default:  			if (!CHECK_FLAG(ntohs(tlv.type), UNKNOWN_FLAG))  				send_notification_rtlvs(nbr, S_UNSSUPORTDCAP,  | 
