summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2009-07-13 21:29:20 +0000
committerStephen D. Huston <shuston@apache.org>2009-07-13 21:29:20 +0000
commitf61a0c8edb33657fe5067952e085c8b5009a5595 (patch)
treeeeb141ac77043e8743b626142b794fc25de7407c /qpid/cpp/src/tests
parentf05c689c4e638078bdd47d3b890b3db53db8dec4 (diff)
downloadqpid-python-f61a0c8edb33657fe5067952e085c8b5009a5595.tar.gz
Add missing externs for Queue methods; silence getenv() warnings on Windows by setting _CRT_NO_SECURE_WARNING
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@793717 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
-rw-r--r--qpid/cpp/src/tests/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/CMakeLists.txt b/qpid/cpp/src/tests/CMakeLists.txt
index c8c2fba8c6..34f5d35a9a 100644
--- a/qpid/cpp/src/tests/CMakeLists.txt
+++ b/qpid/cpp/src/tests/CMakeLists.txt
@@ -44,8 +44,10 @@ endif (ENABLE_VALGRIND)
# (non dll-interface class used as base for dll-interface class).
# This is ok, so suppress the warning.
# Also, boost lengthy names trigger warning 4503, decorated name length exceeded
+# and using getenv() triggers insecure CRT warnings which we can silence in the
+# test environment.
if (MSVC)
- add_definitions( /wd4275 /wd4503 )
+ add_definitions( /wd4275 /wd4503 /D_CRT_SECURE_NO_WARNINGS)
endif (MSVC)
# Like this to work with cmake 2.4 on Unix