Date: Sat, 11 Feb 2023 17:15:08 +0000 From: Minoru TANABE <kotanabe3@gmail.com> To: FreeBSD User <freebsd@walstatt-de.de> Cc: "freebsd-embedded@freebsd.org" <embedded@freebsd.org>, FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: STABLE/13: src/sys/dev/an/if_an_pci.c:143:1: error: a function definition without a prototype Message-ID: <CA%2BGDr7hqy2cCvDbsyZu5c48hc%2BXz7-YTjjSSbuRH0mY9Bt%2Bo8g@mail.gmail.com> In-Reply-To: <20230211101919.05c63e2c@thor.intern.walstatt.dynvpn.de> References: <20230211101919.05c63e2c@thor.intern.walstatt.dynvpn.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000021c47705f46fc2a3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2023=E5=B9=B42=E6=9C=8811=E6=97=A5(=E5=9C=9F) 9:19 FreeBSD User <freebsd@wa= lstatt-de.de>: > Hello, > > compiling most recent FreeBSD 13-STABLE (as of today) with a custom kerne= l > with disabled 'an' > driver in the wireless section (nodevice an), compiling kernel now fails > with the error: > > src/sys/dev/an/if_an_pci.c:143:1: error: a function definition without a > prototype is > deprecated in all versions of C and is not supported in C2x > [-Werror,-Wdeprecated-non-prototype] > > How can this be fixed? > "-Werror, -Wdeprecated-non-prototype" means "Warning! non-prototyped SOMETHING is deprecated" <-- just WARNING treat as ERROR! So, Simply type "make -DWITHOUT_WERROR" JUST Workaround. > Kind regards, > > oh > -- > O. Hartmann > > --=20 Minoru TANABE EMail kotanabe3@gmail.com --00000000000021c47705f46fc2a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"g= mail_attr">2023=E5=B9=B42=E6=9C=8811=E6=97=A5(=E5=9C=9F) 9:19 FreeBSD User = <<a href=3D"mailto:freebsd@walstatt-de.de">freebsd@walstatt-de.de</a>>= ;:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0= .8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br> <br> compiling most recent FreeBSD 13-STABLE (as of today) with a custom kernel = with disabled 'an'<br> driver in the wireless section (nodevice an), compiling kernel now fails wi= th the error:<br> <br> src/sys/dev/an/if_an_pci.c:143:1: error: a function definition without a pr= ototype is<br> deprecated in all versions of C and is not supported in C2x<br> [-Werror,-Wdeprecated-non-prototype]<br> <br> How can this be fixed?<br></blockquote><div>"-Werror, -Wdeprecated-non= -prototype" <br></div><div>means <br></div><div>"Warning! non-pro= totyped SOMETHING is deprecated" <-- just WARNING</div><div>treat a= s ERROR!<br></div><div>So, Simply type "make -DWITHOUT_WERROR"</d= iv><div>JUST Workaround.</div><div><br></div><blockquote class=3D"gmail_quo= te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204= );padding-left:1ex">=C2=A0<br></blockquote><blockquote class=3D"gmail_quote= " style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);= padding-left:1ex"> Kind regards,<br> <br> oh<br> -- <br> O. Hartmann<br> <br> </blockquote></div><br>-- <br><div dir=3D"ltr" class=3D"gmail_signature"><d= iv dir=3D"ltr"><div>Minoru TANABE<br><div>EMail=C2=A0 <a href=3D"mailto:kot= anabe3@gmail.com" target=3D"_blank">kotanabe3@gmail.com</a><br><br><br></di= v></div></div></div></div> --00000000000021c47705f46fc2a3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BGDr7hqy2cCvDbsyZu5c48hc%2BXz7-YTjjSSbuRH0mY9Bt%2Bo8g>