From nobody Sat May 20 19:30:12 2023 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 4QNv1c4DD8z4BRXk for ; Sat, 20 May 2023 19:30:12 +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 4QNv1c31G9z40Jl for ; Sat, 20 May 2023 19:30:12 +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=1684611012; 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=vE2n0Zroqk0z6CpeI7VDa+P8q+5m6+yf2bZn+hUOjWs=; b=wJq+yViBwqkrgPeZlDaEwVX2w9Do/I3nrNnZ3oJQg6CWhTQjnQDjXXPlj6AmZGma9+usHt wbG46FG9ZAjiAnO/7hJBQnzx8nfaDbuW8NkzQ82tru7cKPxQE0N1QlnjFOv8gMFuPVJJNx eDQ7SyG1wCiWmQxnLVrKciUXnPAfRwes07WcjeWCPdOJ4jRK+d2fY3Iw+siG5hpsmvFPbL Ho+pM5ygOF+wNznOFb9w9cMWlMc8DYALMIb07xcuuD1IkPcycIj38Tc1AtcQYCfhot5nUF 3Y/1tbps+UCgnuRYiS4JVQkiCb44xsaaMz1c1v5JGpQWp5OU9JGSxgzL7rmEiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684611012; a=rsa-sha256; cv=none; b=JDWiYkiv4lRKbyXYWd6jh3mvBjI+RwnwuuYMUMDYD8wv5xGI9NI9Z/hGeaQ9YiFgoy+JBM 3zqIDTIEs3YcutXj1/9R2xCgykjaLKiFB2dHdA1yz7cuagfzYKii13URbCeRsevJjbroZa dzwFkUtBsMV9wZYpUi7GRhbIHgzCuTYExIEBGhB8/9cfnbXZNRTOMXCvKp5Yrl7Dqi3+Pg qFfqNPEm4vodHzIM1RrcAoztTpo3YRBfwCrIuqtAnKx7bknVL3Sd2rB0kE/m3lwG9e+pnD jC5yjTB3A1ofuQf7J1oCcsFDke0YyWZhjEha2luWVlCw9gWsHRd7a8NxANFaCg== 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 4QNv1c1zw6zMVN for ; Sat, 20 May 2023 19:30:12 +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 34KJUC6t077105 for ; Sat, 20 May 2023 19:30:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34KJUCfv077104 for ports-bugs@FreeBSD.org; Sat, 20 May 2023 19:30:12 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 271539] mail/panda-cclient: fix build with clang 16 Date: Sat, 20 May 2023 19:30:12 +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 Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: thierry@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=3D271539 Bug ID: 271539 Summary: mail/panda-cclient: fix build with clang 16 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: thierry@FreeBSD.org Reporter: dim@FreeBSD.org Assignee: thierry@FreeBSD.org Flags: maintainer-feedback?(thierry@FreeBSD.org) Clang 16 has a new error about incompatible function types, which shows up when building mail/panda-cclient: news.c:370:36: error: incompatible function pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-function-pointer-types] if ((nmsgs =3D scandir (tmp,&names,news_select,news_numsort)) >=3D 0) { ^~~~~~~~~~~ /usr/include/dirent.h:127:12: note: passing argument to parameter here int (*)(const struct dirent *), int (*)(const struct dirent *= *, ^ news.c:370:48: error: incompatible function pointer types passing 'int (c= onst void *, const void *)' to parameter of type 'int (*)(const struct dirent **, const struct dirent **)' [-Wincompatible-function-pointer-types] if ((nmsgs =3D scandir (tmp,&names,news_select,news_numsort)) >=3D 0) { ^~~~~~~~~~~~ /usr/include/dirent.h:127:44: note: passing argument to parameter here int (*)(const struct dirent *), int (*)(const struct dirent *= *, ^ This is because the prototypes for the scandir(3) 'select' and 'compar' callback function parameters do not match the declarations in . The same occurs in a few other files under src/osdep/unix. Fix these by using the correct parameter types for the callback functions. --=20 You are receiving this mail because: You are the assignee for the bug.=