git: 7467c537a50e - main - Fix warnings during bootstrap phase on macOS
Alex Richardson
arichardson at FreeBSD.org
Thu Jan 7 11:05:55 UTC 2021
The branch main has been updated by arichardson:
URL: https://cgit.FreeBSD.org/src/commit/?id=7467c537a50e558588e369a1409f50684ddefb25
commit 7467c537a50e558588e369a1409f50684ddefb25
Author: Alex Richardson <Alexander.Richardson at cl.cam.ac.uk>
AuthorDate: 2020-12-14 16:14:04 +0000
Commit: Alex Richardson <arichardson at 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 */
}
More information about the dev-commits-src-all
mailing list