Re: git: c9b6241e250a - main - tcp: address enum-int-mismatch fix gcc13 error after f74352fbcf15341accaf5a92240871f98323215d
Date: Sun, 25 Feb 2024 13:30:56 UTC
Am Sun, 25 Feb 2024 11:49:14 GMT Richard Scheffenegger <rscheff@FreeBSD.org> schrieb: > The branch main has been updated by rscheff: > > URL: https://cgit.FreeBSD.org/src/commit/?id=c9b6241e250a4f1156e2150ccdbad0d3029dcef6 > > commit c9b6241e250a4f1156e2150ccdbad0d3029dcef6 > Author: Richard Scheffenegger <rscheff@FreeBSD.org> > AuthorDate: 2024-02-25 03:45:05 +0000 > Commit: Richard Scheffenegger <rscheff@FreeBSD.org> > CommitDate: 2024-02-25 03:46:39 +0000 > > tcp: address enum-int-mismatch > fix gcc13 error after f74352fbcf15341accaf5a92240871f98323215d > --- > sys/netinet/cc/cc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sys/netinet/cc/cc.c b/sys/netinet/cc/cc.c > index 9308b5f8d764..adcb16e87637 100644 > --- a/sys/netinet/cc/cc.c > +++ b/sys/netinet/cc/cc.c > @@ -452,7 +452,7 @@ newreno_cc_after_idle(struct cc_var *ccv) > * Perform any necessary tasks before we enter congestion recovery. > */ > void > -newreno_cc_cong_signal(struct cc_var *ccv, uint32_t type) > +newreno_cc_cong_signal(struct cc_var *ccv, ccsignal_t type) > { > uint32_t cwin, factor, mss, pipe; > > The patch corrupts building the kernel: /usr/src/sys/netinet/cc/cc.c:475:10: error: 6 enumeration values not handled in switch: 'CC_ACK', 'CC_DUPACK', 'CC_PARTIALACK'... [-Werror,-Wswitch] -- O. Hartmann