in a number of configure tests we rely on strict compile runs, using -Werror on gcc. The equivalent of -Werror for other compilers is being tested and written into the Werror_FLAGS variable in the autoconf build. waf also needs to get those tests and use the Werror flag that fits to the compiler.
Andrew, as far as i can see you implemented this already? Is there anything left to do on that?
perhaps apply it to some of the krb5 tests? Otherwise, it's all done.
Unless you want to merge something into 4.0, I'm calling this fixed as this has now been applied in master.
As far as I can tell, all the -Werror related patches are now in 4-0-test