From nobody Tue Jul 02 19:15:10 2024 X-Original-To: dev-commits-src-main@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 4WDCKV5Fnmz5P6WZ; Tue, 02 Jul 2024 19:15:10 +0000 (UTC) (envelope-from git@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDCKV44DVz4c8H; Tue, 2 Jul 2024 19:15:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719947710; 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=+tIaC52iwjpa7yUePOnoVnqU2abDmAESxkqbOjLNnMg=; b=meGXe8Kg1PnAFsNeX43z+GVYZ47E4GakoKnjIsB8B/7PqFbJawJWHCSxfdkavV6TSGKO9k QELmjDqq8oEeUt3yOxO71lIUzzN/1Z47awSGz02dX/r1or1GrfhOtdhjRP+hwNz601oeeg tw63O1T1qdt4e/kE7/xRvcGS34jFJW3949au1A1p0hgWCTbC9ttmqPeg8r6o4gtnbzGtlN aCQ3zxwnFtAJBP/oVVvOiQneQmdqNSXZ55FYwZvWRIDPSD9PG0WXdmIDTGMmMuESZbVLHA QfGOJzsa/ptEDKvhif1bYg5htolveR4zkFVsiIHWw/JW4T29YhPi19q2HYh8Aw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719947710; a=rsa-sha256; cv=none; b=I9dTLj4yD/JflcTCcAKleYTrYArI1bEhqJPR2M0Wvf2GMHGDEgDhJhXNbXuafitJ1qgjQz 038iM18fXMqjq7RhVevczglI23mfJyAElZSIcVQnFBCmpZVbrTjXvPtlukW1TFT3PwZF1D h4LHoiIEC9zuX9+MzkffYSWOxDp9svwap9wsSbDdv1hpktB5rj7nQm821NIhPDUP4UxPSr Hkkb9cLuNkqJGiuMryTnazXXAz24zZ80xuDm2gArehZ+38xnyST4sSdmN8Cu2BFzskZq6E p4/ogh1D5OeuO+l2agpMGiR2BJZfhhB4Tdl8Oz671V+UA2SuAnf/P7lsBQhjlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719947710; 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=+tIaC52iwjpa7yUePOnoVnqU2abDmAESxkqbOjLNnMg=; b=fd3dtW7cAMBJFcDKLtYmaja2bV2pGlwSPR0jg3KQ/RyGy5et3bKcX4C+84WteBpLWVvPq1 fzuIcr1J/EOYbU10GCn/0R9ticFpqS/Y06P7/ImdiJNhytBkab5TtvASDOgZtEecAhatbW nTOuVTuu8uADruGPAiiJiuBLnlJ8WJTCZPD6v/RaqD2UEiJ1HPRr9zdg4vaAdygzO5z7c/ rN5mGBxWWhS/3lg8MP5X5v3jXYNehgGrDnBORRnU07CoACeKJmTQhtbgd/9yjkZU9rjCEa FQtH1oHtxYPiTxqOcLHFwxG3+XM546v8qMYJzmi5kyeteJb/MQon2gknwdQuYA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4WDCKV3gZQz119V; Tue, 2 Jul 2024 19:15:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 462JFAhS014073; Tue, 2 Jul 2024 19:15:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 462JFAhh014070; Tue, 2 Jul 2024 19:15:10 GMT (envelope-from git) Date: Tue, 2 Jul 2024 19:15:10 GMT Message-Id: <202407021915.462JFAhh014070@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ryan Libby Subject: git: 3cfcbbfaf83a - main - cdefs.h __generic: avoid gcc -Wunused-value List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rlibby X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3cfcbbfaf83aa0a61c1fd72cb1e82a011b08bc83 Auto-Submitted: auto-generated The branch main has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=3cfcbbfaf83aa0a61c1fd72cb1e82a011b08bc83 commit 3cfcbbfaf83aa0a61c1fd72cb1e82a011b08bc83 Author: Ryan Libby AuthorDate: 2024-07-02 19:12:59 +0000 Commit: Ryan Libby CommitDate: 2024-07-02 19:12:59 +0000 cdefs.h __generic: avoid gcc -Wunused-value Fixup after 9d2f97981755 : Decay expression passed to fallback version of __generic() Reviewed by: imp, jrtc27, kib Differential Revision: https://reviews.freebsd.org/D45825 --- sys/sys/cdefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index 53ac1b1c3f92..7c4890ece8d5 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -244,8 +244,8 @@ _Generic(expr, t: yes, default: no) #elif !defined(__cplusplus) #define __generic(expr, t, yes, no) \ - __builtin_choose_expr( \ - __builtin_types_compatible_p(__typeof((0, (expr))), t), yes, no) + __builtin_choose_expr(__builtin_types_compatible_p( \ + __typeof(((void)0, (expr))), t), yes, no) #endif /*