git: 82ac811efaa6 - main - makefs zfs: Disable -Wunused-function for GCC as well.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Nov 2022 18:35:45 UTC
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,