git: ffe74ab77f23 - main - bsd.compat.mk: A few cosmetic fixes.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Feb 2022 00:01:17 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=ffe74ab77f234fabe691bd79e254cd000e07dfe0
commit ffe74ab77f234fabe691bd79e254cd000e07dfe0
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-02-04 23:57:28 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-02-04 23:57:28 +0000
bsd.compat.mk: A few cosmetic fixes.
- Add a missing ')' to a warning.
- Consistently use {} when expanding variables.
- Remove a spurious blank line.
Reviewed by: imp, emaste
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D34172
---
share/mk/bsd.compat.mk | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/share/mk/bsd.compat.mk b/share/mk/bsd.compat.mk
index fa6391b1adc2..6a7d3d3c7e80 100644
--- a/share/mk/bsd.compat.mk
+++ b/share/mk/bsd.compat.mk
@@ -71,9 +71,9 @@ LIB32WMAKEFLAGS+= -DCOMPAT_32BIT
# In the program linking case, select LIBCOMPAT
.if defined(NEED_COMPAT)
.ifndef HAS_COMPAT
-.warning NEED_COMPAT defined, but no LIBCOMPAT is available (COMPAT_ARCH == ${COMPAT_ARCH}
+.warning NEED_COMPAT defined, but no LIBCOMPAT is available (COMPAT_ARCH == ${COMPAT_ARCH})
.elif !${HAS_COMPAT:M${NEED_COMPAT}} && ${NEED_COMPAT} != "any"
-.error NEED_COMPAT (${NEED_COMPAT}) defined, but not in HAS_COMPAT ($HAS_COMPAT)
+.error NEED_COMPAT (${NEED_COMPAT}) defined, but not in HAS_COMPAT (${HAS_COMPAT})
.elif ${NEED_COMPAT} == "any"
.endif
.ifdef WANT_COMPAT
@@ -90,7 +90,6 @@ _LIBCOMPAT:= ${WANT_COMPAT}
.endif
.endif
-
# -------------------------------------------------------------------
# Generic code for each type.
# Set defaults based on type.