Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2022 18:35:45 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 82ac811efaa6 - main - makefs zfs: Disable -Wunused-function for GCC as well.
Message-ID:  <202211231835.2ANIZjfe067386@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=82ac811efaa683f406f6e8ece01aec1e772c201c

commit 82ac811efaa683f406f6e8ece01aec1e772c201c
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-11-23 18:35:30 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-11-23 18:35:30 +0000

    makefs zfs: Disable -Wunused-function for GCC as well.
    
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D37469
---
 usr.sbin/makefs/zfs/vdev.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/usr.sbin/makefs/zfs/vdev.c b/usr.sbin/makefs/zfs/vdev.c
index 63a6e7289957..46d2f3da6385 100644
--- a/usr.sbin/makefs/zfs/vdev.c
+++ b/usr.sbin/makefs/zfs/vdev.c
@@ -38,11 +38,11 @@
 
 #include "zfs.h"
 
-#pragma clang diagnostic push
-#pragma clang diagnostic ignored "-Wunused-function"
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-function"
 #include "zfs/fletcher.c"
 #include "zfs/sha256.c"
-#pragma clang diagnostic pop
+#pragma GCC diagnostic pop
 
 static void
 blkptr_set(blkptr_t *bp, off_t off, off_t size, uint8_t dntype, uint8_t level,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211231835.2ANIZjfe067386>