From nobody Sat Mar 02 15:39:12 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 4Tn8Jc5mZ2z5CRx1; Sat, 2 Mar 2024 15:39:12 +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 4Tn8Jc4jKSz43T0; Sat, 2 Mar 2024 15:39:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709393952; 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=VgZFvdIZkqK76hA6vx73QRUCvI+K/gARW+U54haxNtI=; b=BQD/wBdabN5p2KP0ejg8HSQuEWHpZknEHcGd//ZVtUFavg3oe1TvzJeGtJUdTGjEqKSJE1 mM5EAHkigoPpLqtiY1WvNi/Qc8Z6nccRsfpdcaB4M5Ar/GuJVyj53eMWS6jf3Z1Ui9Jvcw PgTPuO+y3DQ3XlrG6lvr+Y5NauVPkvp7qi/UCk8oopSxub9MgZvjsBcI+uHOozWyYLxWNx NZmoVh08rQmzq1a4LtMoOtEdf+HetJ93/CkzKP3beIMfItigqPCFzTqqSNRRQPUgFG2a2N HtVek7e9SYhyAaLAhN4aBHPoU9fQGfGoMieYU5x1JetugErFdjL6cLCpp1jlQA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709393952; a=rsa-sha256; cv=none; b=FwyBBUUVihi7kZUEiJxyJ9ix7K51iegmr4yMsd48PXbfPJ5TB6btpU0cC/K8v3RJLl8zym L727ihz8WKUAn7jXRc7OeQhsXnrFV+S/AFgK+70N4igB0IkTFvD4757arX12RGDDGnvKHB o529OH+MTkW+WBa27bs7NdmidIuD+cf5cIXSBSuOcmy5Foxp68ljKn3d6NTaBQHWhmqhMH B0t7VJ6l2w7xWCk/X+0bCH+PvHEdEl0DLet9LS/9MqMYnmNMsaWBwnAHQPrORyIxZjKhwb dx+JC7lZNs/lKvGtB9MYRda6vsUjnXBXdUbAMRnBTlvURCd5YoyHAUoD7xwSow== 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=1709393952; 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=VgZFvdIZkqK76hA6vx73QRUCvI+K/gARW+U54haxNtI=; b=xadLuUzQQGYBXWKWv6SYh1M21qpbJvaqrt4VSSfp/1XmPdtVP/GjY/rnKpWkIA9J/cup0K FUHK4rH6BZLUJadFLa0cI6R2WdPJNz2BWZi3KQi+WjB4YZvAqfnJ4tY3UUFfiGY60fxQi8 LLgomH8ZVyXuhE9ox2LK4/7SMP/FSVNmBnFuv8M6O5hAablwTNl6fCcoVhHdS/r4UZqfO8 GJMq5Onwzb34Bgc18q1gquBZsytW/1/QVkFEdwtUJv4EHYuoT5NBdWPgoWpU6o51JywKWk tn2O11e47WRT80BOvdflTl6tMX8DZetDWJiJEB6/tXSO3t7wr/eNfGvTtuDXKA== 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 4Tn8Jc4JSkz1Fff; Sat, 2 Mar 2024 15:39:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 422FdCSj017093; Sat, 2 Mar 2024 15:39:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 422FdCXl017090; Sat, 2 Mar 2024 15:39:12 GMT (envelope-from git) Date: Sat, 2 Mar 2024 15:39:12 GMT Message-Id: <202403021539.422FdCXl017090@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 42b117a4bd10 - main - gpioevents: Fix build with newer Clang 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 42b117a4bd104246589149fa9f7b9b7ddc144f23 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=42b117a4bd104246589149fa9f7b9b7ddc144f23 commit 42b117a4bd104246589149fa9f7b9b7ddc144f23 Author: John F. Carr AuthorDate: 2024-03-02 15:38:04 +0000 Commit: Ed Maste CommitDate: 2024-03-02 15:38:04 +0000 gpioevents: Fix build with newer Clang PR: 277422 --- tools/test/gpioevents/Makefile | 2 ++ tools/test/gpioevents/gpioevents.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/test/gpioevents/Makefile b/tools/test/gpioevents/Makefile index 7976bd03174a..4bc4422ae333 100644 --- a/tools/test/gpioevents/Makefile +++ b/tools/test/gpioevents/Makefile @@ -8,4 +8,6 @@ MK_MAN= no BINDIR= /usr/bin +CWARNFLAGS += -Wno-gnu-folding-constant + .include diff --git a/tools/test/gpioevents/gpioevents.c b/tools/test/gpioevents/gpioevents.c index f1bc8e8ee224..43bad610cb68 100644 --- a/tools/test/gpioevents/gpioevents.c +++ b/tools/test/gpioevents/gpioevents.c @@ -61,7 +61,7 @@ sigio_handler(int sig __unused){ } static void -usage() +usage(void) { fprintf(stderr, "usage: %s [-f ctldev] [-m method] [-s] [-n] [-S] [-u]" "[-t timeout] [-d delay-usec] pin intr-config pin-mode [pin intr-config pin-mode ...]\n\n", @@ -152,7 +152,7 @@ print_poll_events(short event) } static void -calc_utc_offset() +calc_utc_offset(void) { struct timespec monotime, utctime;