From nobody Fri Dec 16 18:38:46 2022 X-Original-To: ports-bugs@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 4NYdCq22nNz1G9b6 for ; Fri, 16 Dec 2022 18:38:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NYdCp5K3Sz3khG for ; Fri, 16 Dec 2022 18:38:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671215926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yUBicyG7QKgVnKgWUOtsm9JJKw+nQ0tGeul66EMGjnY=; b=SZb9FbcdKVK0rrdfcwLs+jFOOgsNsewktn41n595ReScNcyZs547mO6PxVfZqoMjKBnDlk V5TtcPKYc4SB6Z3kBxx05PmZQ5IieTfQb1b9U6ZTnNvr2Ui5WznT1oU6DkDj+Pmipjwwc7 7aT9jN7vKLUP2/a8uYwkmrVurxVAC8KOrBxAQrG39A86YrIBh4NWY5h9phGKknS1veB1rs d9CyaMsEh5f0VAVIXV0WA8zg7FjCWvposhpOmQhCT6rzOh8a46F8RkcZ7X5DdTJVuIPbWz bbemvz6tMEJTgbhF53dy/eO/J4Epeh3MYAczuL52nU0G86HKeHNbu5/xo4Wflw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671215926; a=rsa-sha256; cv=none; b=s2DcG8s09EbqHbccWdY+TkZ+K2MlzMFCAmGEzFIOaMLgVo4yr9tK9XBpLEC5irQ/1IoivF HN/DAw93ZsYZFR8iEiM8AJS5r+NY5WC0IawBUmYLijgoIRINhXKnq/RjsVClfRb6W9sejM AGS3fxaY3ldpFu3MdjF8HQVqIRaRcitF7AAlYCCQ1ohJr5Kg5QwKZcU0uRQIx/bjBESLdl UZiSP99D05DTKtAxfcT5A4Jk7PUrFipskFjze4o1pu9l9HNss1VrZavsl2iI9oEHnuz0wr wv8wEHSTwxmJpV15V9GU6ljqT8Co9EAjRCP+WPy5cxi+c1nmPKJBDciDc7Ap6g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NYdCp383CzMtN for ; Fri, 16 Dec 2022 18:38:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BGIckRI022924 for ; Fri, 16 Dec 2022 18:38:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BGIck40022923 for ports-bugs@FreeBSD.org; Fri, 16 Dec 2022 18:38:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 268417] devel/libcbor: fix strict prototype warnings with clang 15 Date: Fri, 16 Dec 2022 18:38:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sunpoet@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268417 Bug ID: 268417 Summary: devel/libcbor: fix strict prototype warnings with clang 15 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: sunpoet@FreeBSD.org Flags: maintainer-feedback?(sunpoet@FreeBSD.org) During an exp-run for llvm 15 (see bug 265425), it turned out that security/libfido2 failed to build with clang 15: In file included from /wrkdirs/usr/ports/security/libfido2/work/libfido2-1.12.0/src/aes256.c:8: In file included from /wrkdirs/usr/ports/security/libfido2/work/libfido2-1.12.0/src/fido.h:42: In file included from /usr/local/include/cbor.h:14: /usr/local/include/cbor/arrays.h:100:51: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] CBOR_EXPORT cbor_item_t* cbor_new_indefinite_array(); ^ void In file included from /wrkdirs/usr/ports/security/libfido2/work/libfido2-1.12.0/src/aes256.c:8: In file included from /wrkdirs/usr/ports/security/libfido2/work/libfido2-1.12.0/src/fido.h:42: In file included from /usr/local/include/cbor.h:15: /usr/local/include/cbor/bytestrings.h:107:54: error: a function declarati= on without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] CBOR_EXPORT cbor_item_t *cbor_new_definite_bytestring(); ^ void And many more of these -Werror warnings, all due to declarations in libcbor= 's headers. These are triggered because functions taking no parameters should = be declared with "(void)", not "()". I would like to propose to fix the problem on the libcbor side, by editing = the declarations and definitions of such functions in the port Makefile. This cleans up all warnings in devel/libcbor, and also fixes security/libfido2 a= s a consequence. --=20 You are receiving this mail because: You are the assignee for the bug.=