git: ec004c5779dc - stable/13 - ntp: disable format string warnings in libopts

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Tue, 03 May 2022 18:21:29 UTC
The branch stable/13 has been updated by emaste:

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

commit ec004c5779dc7e9096b27793eae143a936627985
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-02-27 19:21:12 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-05-03 18:20:44 +0000

    ntp: disable format string warnings in libopts
    
    libopts uses generated format string tables that contain embedded NULs.
    
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D34386
    
    (cherry picked from commit 1ffe6d7909109e22d5dbd9369b00900b00b1169b)
---
 usr.sbin/ntp/libopts/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/usr.sbin/ntp/libopts/Makefile b/usr.sbin/ntp/libopts/Makefile
index 7c10182cbaec..17fe6783b3cb 100644
--- a/usr.sbin/ntp/libopts/Makefile
+++ b/usr.sbin/ntp/libopts/Makefile
@@ -5,6 +5,9 @@
 LIB=	opts
 INTERNALLIB=
 
+# XXX libopts uses generated format string tables containing embedded NULs.
+NO_WFORMAT=
+
 SRCS=	libopts.c
 
 CFLAGS+= -I${SRCTOP}/contrib/ntp/include \