Disable warnings we don't care about on Windows
authorAsanka Herath <asanka@secure-endpoints.com>
Thu, 3 Jun 2010 01:26:31 +0000 (21:26 -0400)
committerAsanka Herath <asanka@secure-endpoints.com>
Fri, 20 Aug 2010 17:03:39 +0000 (13:03 -0400)
We may care about them later, but for now we need to cut down on
noise.

windows/NTMakefile.w32

index c733c27b4fa77b34c77e10a519ae7858cc96adf3..e0291c78134d3e780ac35f6b6e72cf4f4d41562b 100644 (file)
@@ -148,7 +148,23 @@ pthreadinc= -I$(PTHREAD_INC)
 
 cincdirs=$(cincdirs) -I$(INCDIR) -I$(INCDIR)\krb5 $(pthreadinc)
 cdefines=$(cdefines) -DHAVE_CONFIG_H
-cwarn=$(cwarn) -D_CRT_SECURE_NO_WARNINGS -wd4996 -wd4127 -wd4244 -wd4100
+
+# Disable warnings:
+#
+# C4996: 'function' was declared deprecated
+# C4127: Conditional expression is constant
+# C4244: Conversion from 'type1' to 'type2', possible loss of data
+# C4100: 'identifier': unreferenced formal parameter
+# C4706: Assignment within conditional expression
+# C4214: Nonstandard extension used
+# C4267: '': Conversion from 'type1' to 'type2', possible loss of data
+# C4018: '': Signed/unsigned mismatch
+# C4204: Nonstandard extension used: non-constant aggregate initializer
+# C4221: Nonstandard extension used: 'v1': cannot be initialized using address of automatic variable 'v2'
+# C4295: '': Array is too small to include a terminating null character
+#
+cwarn=$(cwarn) -D_CRT_SECURE_NO_WARNINGS -wd4996 -wd4127 -wd4244 -wd4100 -wd4706
+cwarn=$(cwarn) -wd4214 -wd4267 -wd4018 -wd4389 -wd4204 -wd4221 -wd4295
 
 !if "$(CPU)"=="i386"
 libmach=/machine:X86