git: 6ca0468a2f23 - main - libcbor: Ignore errors for unknown #pragmas

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 07 May 2024 18:45:17 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=6ca0468a2f23c82d6cdde2af1a42b62af3664766

commit 6ca0468a2f23c82d6cdde2af1a42b62af3664766
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-05-07 18:44:52 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-05-07 18:44:52 +0000

    libcbor: Ignore errors for unknown #pragmas
    
    libcbor embeds clang-specific #pragmas that GCC then warns about.
    
    Reviewed by:    emaste
---
 lib/libcbor/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/libcbor/Makefile b/lib/libcbor/Makefile
index 5ae2c34a5963..c9d86c0b95ad 100644
--- a/lib/libcbor/Makefile
+++ b/lib/libcbor/Makefile
@@ -30,6 +30,7 @@ SRCS+=	cbor/internal/unicode.c
 CFLAGS+= -I${DIST}/src -I${.CURDIR}
 
 WARNS?=	2
+IGNORE_PRAGMA=
 MAN=
 
 .include <bsd.lib.mk>