diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-01-01 17:25:07 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-01-01 17:25:07 +0000 |
commit | df4412e57f30f63e5bd514270e2aaa5c24267171 (patch) | |
tree | 486972e0a076e09b3743ce99bb3bc9102ed516b6 | |
parent | 73aca81b50073109b137bba659d38af11d7194ac (diff) | |
download | mandoc-df4412e57f30f63e5bd514270e2aaa5c24267171.tar.gz mandoc-df4412e57f30f63e5bd514270e2aaa5c24267171.tar.zst mandoc-df4412e57f30f63e5bd514270e2aaa5c24267171.zip |
CFLAGS need -Werror to make the strlcpy/strlcat check work.
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -263,11 +263,11 @@ config.h: config.h.pre config.h.post rm -f config.log ( cat config.h.pre; \ echo; \ - if $(CC) $(CFLAGS) -c test-strlcat.c >> config.log 2>&1; then \ + if $(CC) $(CFLAGS) -Werror -c test-strlcat.c >> config.log 2>&1; then \ echo '#define HAVE_STRLCAT'; \ rm test-strlcat.o; \ fi; \ - if $(CC) $(CFLAGS) -c test-strlcpy.c >> config.log 2>&1; then \ + if $(CC) $(CFLAGS) -Werror -c test-strlcpy.c >> config.log 2>&1; then \ echo '#define HAVE_STRLCPY'; \ rm test-strlcpy.o; \ fi; \ |