From nobody Thu Sep 29 22:07:42 2022 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 4MdnXv34fmz4YHy0; Thu, 29 Sep 2022 22:07:43 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MdnXv29rBz3PDM; Thu, 29 Sep 2022 22:07:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664489263; 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=HwuLiaFKhJQg/t9MRYbSuah3wRN8jGIB/aKCzI0IQh0=; b=I8nHl3+AKNV/MrZXS7WPZW9G9Rtw7pYxJGtKvmD60/N41qgqrX4dK1Ea3ocLpv1YcJ+2g6 bittxgOaJsORof8vJei/rseLFDTHHoDo291ftD5KkWawsx1jkAE+BRaQM676n8Ziy9Ctxh cLxIz+fAWRmibM1uAU6qlJKN+MoPiU/rhNK927vr99KbSoQG1porlJBkAq2J9YbDurOzN7 GdvANDn2IGnST05cq+0t51c0sAI3wJWr524H4cNK0MpcX75S6p32X+3eYTNBsq3QLdS0jx EM/nGoWcR6+H43OsTWxGSZInaeZfDfMrcLkH1QzeAq4pV8cA6NzRlujcaU7/Fg== 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 4MdnXv0zQCzxgh; Thu, 29 Sep 2022 22:07:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28TM7ggm002996; Thu, 29 Sep 2022 22:07:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28TM7g3n002995; Thu, 29 Sep 2022 22:07:42 GMT (envelope-from git) Date: Thu, 29 Sep 2022 22:07:42 GMT Message-Id: <202209292207.28TM7g3n002995@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 1aef571102e2 - main - rb_tree: Use void casts for RB_AUGMENT_CHECK with unused return 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1aef571102e2d56b062916d69d962e8eeecfd1bf Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664489263; 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=HwuLiaFKhJQg/t9MRYbSuah3wRN8jGIB/aKCzI0IQh0=; b=LMASUIx+kYxdbX1Hy5YrJDJzDMr/O8QcsgXxt0urkBkX2Q+YTT7GmOX7Wc+YBNV5vHqi/N qH44vwsjY2Rx1PRz7UnIUoIIUVOIu0UDxo25hxBWjungeGeS1ohCOCcIuTQK8fRVQXliou DaeTCuxCsanBz7DEFWU9haa38kKgzDe9uwBtAno4rXJv6ZxygwshalenDRFlroeQSmRHlT wVm4bGnKQkZEy2xT6QzU6wVTLG7berd5bT4nl8yan2YhyDNbfbP8lSE9JSj4cVrvyxxRMt NNeg+wigOl6hsPr1ki8MtHlG0GHI+pFyJEODDVvnw+NDBWypQDJkky4wVbQ87w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664489263; a=rsa-sha256; cv=none; b=FSVjwi7vkPy1xq88VEFEMhy2VP2jTikbLvaqxQy/jzg8Wvhf6I1D6ecgdRkW32g8HO1vtx F5Tkj65BSIYFwOLiks3DoyqMh1NyLV0xrmZWhpvhOk3zNvJAwWHf5ASjdmMIKt6v1gAKGQ WYVnAcztmvClIC+U85QG+uFOYt1XF0supnuf4jTddkIpvQceImR04DypWEWMhf4tMl/X40 gPcLAalgSCqjcK4K8moNacYqIHah7qygzM0qI92EZcGdb/zJ9CUmIAqRvPGFoJzcvfalYz gyexl3fMxy6pMbH3we2kCGIUX2AovJwf2DvA/GkCIWWK6V5Horfa8jX/hXxVaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1aef571102e2d56b062916d69d962e8eeecfd1bf commit 1aef571102e2d56b062916d69d962e8eeecfd1bf Author: John Baldwin AuthorDate: 2022-09-29 22:05:22 +0000 Commit: John Baldwin CommitDate: 2022-09-29 22:05:22 +0000 rb_tree: Use void casts for RB_AUGMENT_CHECK with unused return value. Reviewed by: dougm Reported by: GCC -Wunused-value Differential Revision: https://reviews.freebsd.org/D36778 --- sys/sys/tree.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/sys/tree.h b/sys/sys/tree.h index 460af08407b8..6743a8eb104c 100644 --- a/sys/sys/tree.h +++ b/sys/sys/tree.h @@ -603,8 +603,8 @@ name##_RB_INSERT_COLOR(struct name *head, \ * so update augmentation for them. \ */ \ if (elm != child) \ - RB_AUGMENT_CHECK(elm); \ - RB_AUGMENT_CHECK(parent); \ + (void)RB_AUGMENT_CHECK(elm); \ + (void)RB_AUGMENT_CHECK(parent); \ return (child); \ } while ((parent = gpar) != NULL); \ return (NULL); \ @@ -734,7 +734,7 @@ name##_RB_REMOVE_COLOR(struct name *head, \ * augmentation for it. \ */ \ if (sib != elm) \ - RB_AUGMENT_CHECK(sib); \ + (void)RB_AUGMENT_CHECK(sib); \ return (parent); \ } while (elm = parent, (parent = gpar) != NULL); \ return (NULL); \ @@ -793,8 +793,8 @@ name##_RB_REMOVE(struct name *head, struct type *out) \ * changed subtrees, so update augmentation for \ * them if AUGMENT_WALK didn't. \ */ \ - RB_AUGMENT_CHECK(opar); \ - RB_AUGMENT_CHECK(RB_PARENT(opar, field)); \ + (void)RB_AUGMENT_CHECK(opar); \ + (void)RB_AUGMENT_CHECK(RB_PARENT(opar, field)); \ } \ } \ return (out); \ @@ -830,7 +830,7 @@ name##_RB_INSERT(struct name *head, struct type *elm) \ * changed subtree, so update augmentation for it if \ * AUGMENT_WALK didn't. \ */ \ - RB_AUGMENT_CHECK(tmp); \ + (void)RB_AUGMENT_CHECK(tmp); \ return (NULL); \ }