aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2021-01-19 11:35:04 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-01-19 21:23:25 +0000
commit0348c8fcfaa22d4f2bf548ad9c187c09ef90c533 (patch)
tree743b8bf3b822a32712f27910687562491dca6a42 /tools
parent74eb7f97ecd62d0a7e056e4c2fd696f2c267e3a5 (diff)
downloadsrc-0348c8fcfaa22d4f2bf548ad9c187c09ef90c533.tar.gz
src-0348c8fcfaa22d4f2bf548ad9c187c09ef90c533.zip
getopt: Fix conversion from string-literal to non-const char *
Define a non-const static char EMSG[] = "" to avoid having to add __DECONST() to all uses of EMSG. Also make current_dash a const char * to fix this warning.
Diffstat (limited to 'tools')
-rw-r--r--tools/build/mk/Makefile.boot1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/build/mk/Makefile.boot b/tools/build/mk/Makefile.boot
index 38df8135e53b..7ebbf726e7f2 100644
--- a/tools/build/mk/Makefile.boot
+++ b/tools/build/mk/Makefile.boot
@@ -41,6 +41,7 @@ CWARNFLAGS+= -Wno-typedef-redefinition
# bsd.sys.mk explicitly turns on -Wsystem-headers, but that's extremely
# noisy when building on Linux.
CWARNFLAGS+= -Wno-system-headers
+CWARNFLAGS.clang+=-Werror=incompatible-pointer-types-discards-qualifiers
# b64_pton and b64_ntop is in libresolv on MacOS and Linux:
# TODO: only needed for uuencode and uudecode