From cf904ec83224d4369e112bbbaf64a4b9b2b9d193 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Sun, 3 May 2009 03:52:37 +0000 Subject: Some more fixes to build under Visual Studio 2008 Remove some simple Visual Studio 2008 warnings Fix qmfconsole build under Windows and CMake git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@771020 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/FieldTable.cpp | 2 +- cpp/src/tests/header_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests') diff --git a/cpp/src/tests/FieldTable.cpp b/cpp/src/tests/FieldTable.cpp index 9f2fd45b73..a02bbd5194 100644 --- a/cpp/src/tests/FieldTable.cpp +++ b/cpp/src/tests/FieldTable.cpp @@ -125,7 +125,7 @@ QPID_AUTO_TEST_CASE(testNestedValues) QPID_AUTO_TEST_CASE(testFloatAndDouble) { char buff[100]; - float f = 5.672; + float f = 5.672f; double d = 56.720001; { FieldTable a; diff --git a/cpp/src/tests/header_test.cpp b/cpp/src/tests/header_test.cpp index ba9ffacc9b..c36b4f3bc3 100644 --- a/cpp/src/tests/header_test.cpp +++ b/cpp/src/tests/header_test.cpp @@ -42,7 +42,7 @@ int main(int argc, char** argv) std::string q("header_interop_test_queue"); session.queueDeclare(arg::queue=q); double pi = 3.14159265; - float e = 2.71828; + float e = 2.71828f; Message msg("", q); msg.getMessageProperties().getApplicationHeaders().setDouble("pi", pi); msg.getMessageProperties().getApplicationHeaders().setFloat("e", e); -- cgit v1.2.1