On the '1.3.x-r1909252-group' branch: Merge r1909433 (Threat warning C4013
('function' undefined; assuming extern returning int) as an error.
We rely on OPENSSL_NO_STDIO to prevent using _fp() APIs from OpenSSL, but
they still can be linked without a definition [with a warning], so let's make
sure we treat that warning as an error.
git-svn-id: https://svn.apache.org/repos/asf/serf/branches/1.3.x-r1909252-group@1909434 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/SConstruct b/SConstruct
index 92a3b38..8a9322c 100644
--- a/SConstruct
+++ b/SConstruct
@@ -268,7 +268,10 @@
env.Append(PLATFORM='posix')
else:
# Warning level 4, no unused argument warnings
- env.Append(CCFLAGS=['/W4', '/wd4100'])
+ env.Append(CCFLAGS=['/W4',
+ '/wd4100', # Unused argument
+ '/we4013', # 'function' undefined; assuming extern returning int
+ ])
# Choose runtime and optimization
if debug: