Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 18:31:31 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: 1bd44215d048 - main - less: Silence -Wdeprecated-non-prototype warnings.
Message-ID:  <202304181831.33IIVV9K028006@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=1bd44215d048503cb5902f87f7c8d98ff726338f

commit 1bd44215d048503cb5902f87f7c8d98ff726338f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-18 18:26:08 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-18 18:26:08 +0000

    less: Silence -Wdeprecated-non-prototype warnings.
    
    This has an active upstream so will presumably be fixed upstream at
    some point.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D39525
---
 usr.bin/less/Makefile     | 4 ++--
 usr.bin/lessecho/Makefile | 2 ++
 usr.bin/lesskey/Makefile  | 2 ++
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/usr.bin/less/Makefile b/usr.bin/less/Makefile
index ca9d948e1e4f..c55ce3581cbf 100644
--- a/usr.bin/less/Makefile
+++ b/usr.bin/less/Makefile
@@ -19,7 +19,7 @@ LINKS=	${BINDIR}/less ${BINDIR}/more \
 MLINKS=	less.1 more.1
 CLEANFILES= less.1
 
-CFLAGS+=	${NO_WDEPRECATED_NON_PROTOTYPE}
-
 .include "Makefile.common"
 .include <bsd.prog.mk>
+
+CWARNFLAGS+=	${NO_WDEPRECATED_NON_PROTOTYPE}
diff --git a/usr.bin/lessecho/Makefile b/usr.bin/lessecho/Makefile
index af0a7c1550ab..0d40cc209548 100644
--- a/usr.bin/lessecho/Makefile
+++ b/usr.bin/lessecho/Makefile
@@ -6,3 +6,5 @@ CLEANFILES= lessecho.1
 
 .include "${SRCTOP}/usr.bin/less/Makefile.common"
 .include <bsd.prog.mk>
+
+CWARNFLAGS+=	${NO_WDEPRECATED_NON_PROTOTYPE}
diff --git a/usr.bin/lesskey/Makefile b/usr.bin/lesskey/Makefile
index 4677e7c7e6c7..6809d9dba124 100644
--- a/usr.bin/lesskey/Makefile
+++ b/usr.bin/lesskey/Makefile
@@ -6,3 +6,5 @@ CLEANFILES= lesskey.1
 
 .include "${SRCTOP}/usr.bin/less/Makefile.common"
 .include <bsd.prog.mk>
+
+CWARNFLAGS+=	${NO_WDEPRECATED_NON_PROTOTYPE}



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