From d5ca3b721e049fc4f59718a55c932a06533d4b3c Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Tue, 14 May 2013 12:29:30 +0200 Subject: Fix memory leak in run_tests() --- src/test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/test.cpp') diff --git a/src/test.cpp b/src/test.cpp index d1f53f880..e1dbfa6b8 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -1772,6 +1772,10 @@ void run_tests() TEST(TestConnection); dout_con<<"=== END RUNNING UNIT TESTS FOR CONNECTION ==="< Date: Sun, 19 May 2013 21:26:08 -0400 Subject: Fix nearly all warnings --- src/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test.cpp') diff --git a/src/test.cpp b/src/test.cpp index e1dbfa6b8..3a0316e17 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -464,7 +464,7 @@ struct TestCompress: public TestBase std::string str_decompressed = os_decompressed.str(); UTEST(str_decompressed.size() == data_in.size(), "Output size not" " equal (output: %u, input: %u)", - str_decompressed.size(), data_in.size()); + (unsigned int)str_decompressed.size(), (unsigned int)data_in.size()); for(u32 i=0; i