[Pkg-running-devel] [antpm] 03/39: tests: fix warning

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Fri Nov 7 11:13:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch upstream
in repository antpm.

commit b12855a4248a43b90c2649f55bc589af916822fd
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Thu Jul 31 19:34:20 2014 +0200

    tests: fix warning
    
    Building CXX object tests/CMakeFiles/testDeviceSettings.dir/testDeviceSettings.cpp.o
    /home/travis/build/ralovich/antpm/src/tests/testDeviceSettings.cpp: In member function ‘void convert_0::test_method()’:
    /home/travis/build/ralovich/antpm/src/tests/testDeviceSettings.cpp:73:17: warning: unused variable ‘s’ [-Wunused-variable]
    /home/travis/build/ralovich/antpm/src/tests/testDeviceSettings.cpp:74:17: warning: unused variable ‘t’ [-Wunused-variable]
---
 src/tests/testDeviceSettings.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tests/testDeviceSettings.cpp b/src/tests/testDeviceSettings.cpp
index d569e03..4117d1e 100644
--- a/src/tests/testDeviceSettings.cpp
+++ b/src/tests/testDeviceSettings.cpp
@@ -72,6 +72,8 @@ BOOST_AUTO_TEST_CASE(convert_0)
   {
     const char* s="2013-07-06T20:40:16Z";
     std::time_t t=1373143216;
+    (void)(s);
+    (void)(t);
 
     //LOG(LOG_INF) << DeviceSettings::str2time(s) << "\t" << t << "\n" << std::endl;
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git



More information about the Pkg-running-devel mailing list