Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2021 11:05:55 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7467c537a50e - main - Fix warnings during bootstrap phase on macOS
Message-ID:  <202101071105.107B5tWR011290@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arichardson:

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

commit 7467c537a50e558588e369a1409f50684ddefb25
Author:     Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
AuthorDate: 2020-12-14 16:14:04 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-01-07 09:31:03 +0000

    Fix warnings during bootstrap phase on macOS
---
 tools/build/cross-build/include/mac/string.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/build/cross-build/include/mac/string.h b/tools/build/cross-build/include/mac/string.h
index 5e7823a5f291..3f9ec4935a37 100644
--- a/tools/build/cross-build/include/mac/string.h
+++ b/tools/build/cross-build/include/mac/string.h
@@ -51,7 +51,7 @@ strchrnul(const char *p, int ch)
 	c = ch;
 	for (;; ++p) {
 		if (*p == c || *p == '\0')
-			return ((char *)p);
+			return (__DECONST(char *, p));
 	}
 	/* NOTREACHED */
 }



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