From nobody Mon Feb 27 20:36:26 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 4PQXMy3mFlz3t6LD for ; Mon, 27 Feb 2023 20:36:30 +0000 (UTC) (envelope-from paulf2718@gmail.com) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) (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 4PQXMx1yL0z4L7K for ; Mon, 27 Feb 2023 20:36:29 +0000 (UTC) (envelope-from paulf2718@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=P87EU0Y1; spf=pass (mx1.freebsd.org: domain of paulf2718@gmail.com designates 2a00:1450:4864:20::42b as permitted sender) smtp.mailfrom=paulf2718@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-x42b.google.com with SMTP id bw19so7526311wrb.13 for ; Mon, 27 Feb 2023 12:36:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=gohQrdZF7yW/ghpZ8sbuUwiqg8/JhMfRX+BLQAbsdGI=; b=P87EU0Y1jFXSG757Z/3uAQMW8w+EPYl+bSzzbfoDOhYAhFosOkIPe/K+6Mw61bm9Su vV2FYM889kkd6x8umLNTzpr9MJubau9q4IrgHvi4IIE3u9S42ESWSfWf+N5dyPWVx6Kw tYs/e9T8jWLihP7/ZyjMzv1xN/FbkNrG8LYwMiwtyliSe4a33SqiPV09Cy+n/jws4/9E +k+1/RrkGl1rEz3OCzLecyTVYe5RWz87dqU3cSF7HPRchY7+z2/29aRtPNQXVl6+wln3 LAVN2JYgciFXsDRM/2lzaZWSs5BkNvkMs/7YVIqgHILMELP5hLQPUycRiv14pX2ux6TM bO3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=gohQrdZF7yW/ghpZ8sbuUwiqg8/JhMfRX+BLQAbsdGI=; b=KhZLM2ttfCE4qzGynAWmuT9JcjtLg8QFhKmmlgAvTT/4f2fq2F1Y+XtYGOLdiSbZth 0BTp1mgNWf5IpsgoznAXT14Q6QHBYh4VFPZtxGk9s4jtRaoq/yd7zNUihe9mEINm2kmD +2wOpXx/csQpDdyvqqCVHeJXDTJTSLZnF+67jfyx3WlfMb6G6IWg0w56JgIGr9BMzalJ TSKexjJU4qlzETH8TTTBAx+hD/o/Uh3Tr9MkEIU1xAGpc1D4divnAXeRboInyBP8Wk7+ 1o8NxgKEbqIsV6O/rHUi4vZ/QWFRNw9BcP2raHI/DylUA3WvjJxOtZJgSK0iD/yzsXF7 XvKg== X-Gm-Message-State: AO0yUKWjY1vrNVHVPEtlIA5xYTxcJe9L5OYalwBapFz/gVURpqg8yn6T G32ysa3Hhd07DlacSfNZAglwZMWzxougNg== X-Google-Smtp-Source: AK7set9vvTIjDko9XdH0+IqE7BHIZGyjB01xN9htqiN0VRrhA1BsmQ4NF4ZlIKROdqTObbx5aXvvPA== X-Received: by 2002:a5d:4dc3:0:b0:2c7:11f4:8eb4 with SMTP id f3-20020a5d4dc3000000b002c711f48eb4mr295762wru.71.1677530187387; Mon, 27 Feb 2023 12:36:27 -0800 (PST) Received: from [192.168.1.28] (lfbn-gre-1-309-115.w90-112.abo.wanadoo.fr. [90.112.30.115]) by smtp.gmail.com with ESMTPSA id i2-20020adfdec2000000b002c71dd1109fsm7930518wrn.47.2023.02.27.12.36.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Feb 2023 12:36:27 -0800 (PST) Message-ID: <5362f30e-a836-df3c-e119-9af2f5499643@gmail.com> Date: Mon, 27 Feb 2023 21:36:26 +0100 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: NanoBSD: CURRENT unable to compile 13-STABLE : error: a function definition without a prototype is deprecated ... in C To: freebsd-current@freebsd.org References: <20230227192011.08f7aa8e@thor.intern.walstatt.dynvpn.de> Content-Language: en-US From: Paul Floyd In-Reply-To: <20230227192011.08f7aa8e@thor.intern.walstatt.dynvpn.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.94 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.94)[-0.940]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42b:from]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org] X-Rspamd-Queue-Id: 4PQXMx1yL0z4L7K X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On 27-02-23 19:19, FreeBSD User wrote: > Running recent CURRENT as host (FreeBSD 14.0-CURRENT #23 main-n261147-b8bb73ab724b: Sun Feb 26 > 17:39:38 CET 2023 amd64), and nanoBSD (recent 13-STABLE, git stable/13). > > Building an appliance based on 13-STABLE sources, a customized kernel via nanoBSD, since a > couple of weeks for now building the sources fails in kernel sources: > > [...] > --- modules-all --- > --- all_subdir_an --- > /pool/home/ohartmann/Projects/router/router/apu2c4/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] > [..] You need to either fix the C code or find someone else that can fix it.* This is code that ensures that function calls correctly match function definitions using the high tech method of "cross your fingers and hope that it works". This was "fixed" by ANSI C going on for 35 years ago. Ancient code like this is probably safe enough - the finger crossing seems to have worked for a long time. It's no wonder people are clamouring to only use safe languages like Rust for new projects. A+ Paul * well maybe there is a compiler switch like -Wno-sane-person-would-do-this