From nobody Sat Feb 11 17:15:08 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PDcgD21XRz3pfgl; Sat, 11 Feb 2023 17:15:20 +0000 (UTC) (envelope-from kotanabe3@gmail.com) Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PDcgC6sNVz4Ksk; Sat, 11 Feb 2023 17:15:19 +0000 (UTC) (envelope-from kotanabe3@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-x732.google.com with SMTP id r73so3330283qke.6; Sat, 11 Feb 2023 09:15:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ljWMfxZ4kWdnWptHv8oFuW3s4H6xZsbIfW9yLxh1Flg=; b=j8m6bnpSRhOtAqYkvwJHd/DgAukFnkn/xA6HF1F4y+YuY2tYuWtGD51yWHzGCpl+EP 1P4Vhxo34orNi2rzUSqFJ2DKtMQ4agZICNREFw+ul3Py5zNGMZwVmXsD195R0+xwNWjn pAzRIow3qTsmgdF6Zi+cEMN/3WxiFkssKyGjJAsnUJ28svJatIIbc5IlRIQA7AUGZy+c 4bwWQ+T1ao0j/1/p4ZfCH4iv+KILXFRbwwg847smSdr40LS8g4ixEhOiNzScPhkjoEra 0rRgFoG1VDkePj7+Md5KVwVN5k6wlpEBcYUEInRJxQ885UhMWiffrS2oEAtVOl3nt0f8 NsVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ljWMfxZ4kWdnWptHv8oFuW3s4H6xZsbIfW9yLxh1Flg=; b=0G9MVCL2nBKH+Eui7ui3z36MSYJ6C7BuAXbAlq6TLTZmFwOmEjVmKI6tdjFKbDkZ34 c4KkN8QvGcdtAswWGQZkLy/IeQpPrboBhCclOihsH4VW7hn+gzXp9XY5pEYEKtZMwYWI UbZMvral5q/cNKrVwAfPz77T0+KLZmP92pp/9AF1WRz/CJuOvPebaktoKh5kWMk24Csl DVJHoIZ7IANZKYY/r+wjRsNdSI6Eea2+K5lVb6z8VVngIlRybMqzhYfI6jmjMXLN3MSg lZH5xHgOk03RkV/jisG79KmdZeQsNNFWBxbb6t7UVkN/inSKY/r8t+D4zEf7zfGWFARh fMKQ== X-Gm-Message-State: AO0yUKURYHDiemcATBDGjQ8zVx5z4m0DdvmmaVNe+J2HFruU1tkCQb94 Pzai/rMBgI2LfMwSOejDqUb4KBPYDaO34JpdTnPxhbjXT3I= X-Google-Smtp-Source: AK7set8hYRLBBHJuq4tVmJ5qf93Pr7B+/8m9MDeguLvlX1dGat0NGrlKcCMdTti4QFtrILXNNLnXfSqq5kZiTPiWUSQ= X-Received: by 2002:a37:44d1:0:b0:710:76:de46 with SMTP id r200-20020a3744d1000000b007100076de46mr1429285qka.92.1676135719092; Sat, 11 Feb 2023 09:15:19 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <20230211101919.05c63e2c@thor.intern.walstatt.dynvpn.de> In-Reply-To: <20230211101919.05c63e2c@thor.intern.walstatt.dynvpn.de> From: Minoru TANABE Date: Sat, 11 Feb 2023 17:15:08 +0000 Message-ID: Subject: Re: STABLE/13: src/sys/dev/an/if_an_pci.c:143:1: error: a function definition without a prototype To: FreeBSD User Cc: "freebsd-embedded@freebsd.org" , FreeBSD CURRENT Content-Type: multipart/alternative; boundary="00000000000021c47705f46fc2a3" X-Rspamd-Queue-Id: 4PDcgC6sNVz4Ksk X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --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 : > 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

2023=E5=B9=B42=E6=9C=8811=E6=97=A5(=E5=9C=9F) 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 wi= th the error:

src/sys/dev/an/if_an_pci.c:143:1: error: a function definition without a pr= ototype 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-pro= totyped SOMETHING is deprecated" <-- just WARNING
treat a= s ERROR!
So, Simply type "make -DWITHOUT_WERROR"
JUST Workaround.

=C2=A0
Kind regards,

oh
--
O. Hartmann


--
Minoru TANABE
--00000000000021c47705f46fc2a3--