Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
2023年2月11日(土) 9:19 FreeBSD User <freebsd@walstatt-de.de>:

> Hello,
>
> compiling most recent FreeBSD 13-STABLE (as of today) with a custom kernel
> 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
>
>
-- 
Minoru TANABE
EMail  kotanabe3@gmail.com

[-- Attachment #2 --]
<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2023年2月11日(土) 9:19 FreeBSD User &lt;<a href="mailto:freebsd@walstatt-de.de">freebsd@walstatt-de.de</a>&gt;:<br></div><blockquote class="gmail_quote" style="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 &#39;an&#39;<br>
driver in the wireless section (nodevice an), compiling kernel now fails with the error:<br>
<br>
src/sys/dev/an/if_an_pci.c:143:1: error: a function definition without a prototype 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>&quot;-Werror, -Wdeprecated-non-prototype&quot; <br></div><div>means <br></div><div>&quot;Warning! non-prototyped SOMETHING is deprecated&quot; &lt;-- just WARNING</div><div>treat as ERROR!<br></div><div>So, Simply type &quot;make -DWITHOUT_WERROR&quot;</div><div>JUST Workaround.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br></blockquote><blockquote class="gmail_quote" style="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="ltr" class="gmail_signature"><div dir="ltr"><div>Minoru TANABE<br><div>EMail  <a href="mailto:kotanabe3@gmail.com" target="_blank">kotanabe3@gmail.com</a><br><br><br></div></div></div></div></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BGDr7hqy2cCvDbsyZu5c48hc%2BXz7-YTjjSSbuRH0mY9Bt%2Bo8g>