From 174a4f7b80af7f7a33cd9a098c13af23e5ec2a28 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 1 Jun 2000 19:39:26 +0000 Subject: [PATCH] 224. [cleanup] The entire project builds cleanly with gcc's -Wcast-qual and -Wwrite-strings warnings enabled, which is now the default when using gcc. (Warnings from confparser.c, because of yacc's code, are unfortunately to be expected.) 223. [func] Several functions were reprototyped to qualify one or more of their arguments with "const". Similarly, several functions that return pointers now have those pointers qualified with const. --- CHANGES | 15 +++++++++++++-- configure | 4 ++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 64faa361c4..4b618889d6 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,14 @@ + 224. [cleanup] The entire project builds cleanly with gcc's + -Wcast-qual and -Wwrite-strings warnings enabled, + which is now the default when using gcc. (Warnings + from confparser.c, because of yacc's code, are + unfortunately to be expected.) + + 223. [func] Several functions were reprototyped to qualify one + or more of their arguments with "const". Similarly, + several functions that return pointers now have + those pointers qualified with const. + 222. [bug] The global 'also-notify' option was ignored. 221. [bug] An uninitialized variable was sometimes passed to @@ -26,10 +37,10 @@ 214. [func] New public function isc_netaddr_format(), for formatting network addresses in log messages. - 213. [cleanup] Don't leak memory when reloading the zone if + 213. [bug] Don't leak memory when reloading the zone if an update-policy clause was present in the old zone. - 212. [cleanup] Added dns_message_get/settsigkey, to make TSIG + 212. [func] Added dns_message_get/settsigkey, to make TSIG key management reasonable. 211. [func] The 'key' and 'server' statements can now occur diff --git a/configure b/configure index aba756c201..e55941af27 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh -# From configure.in Revision: 1.141 +# From configure.in Revision: 1.142 @@ -2309,7 +2309,7 @@ MKDEPCC="$CC" MKDEPCFLAGS="-M" IRIX_DNSSEC_WARNINGS_HACK="" if test "X$GCC" = "Xyes"; then - STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes" + STD_CWARNINGS="$STD_CWARNINGS -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings" case "$host" in *-freebsd*) CC="$CC -pthread"