git: 1bd44215d048 - main - less: Silence -Wdeprecated-non-prototype warnings.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Apr 2023 18:31:31 UTC
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}