From 7122d03d7dbafe4cca39c4de870a83a178d44f0b Mon Sep 17 00:00:00 2001 From: rich_sposato Date: Thu, 13 Oct 2011 18:39:32 +0000 Subject: [PATCH] Added void statements to remove compiler warnings. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1143 7ec92016-0320-0410-acc4-a06ded1c099a --- test/Register/main.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/test/Register/main.cpp b/test/Register/main.cpp index b5ce62b..c064480 100644 --- a/test/Register/main.cpp +++ b/test/Register/main.cpp @@ -2,12 +2,12 @@ // The Loki Library // Copyright (c) 2006,2009 Peter Kümmel // Copyright (C) 2009 Andy Balaam -// Permission to use, copy, modify, distribute and sell this software for any -// purpose is hereby granted without fee, provided that the above copyright -// notice appear in all copies and that both that copyright notice and this +// Permission to use, copy, modify, distribute and sell this software for any +// purpose is hereby granted without fee, provided that the above copyright +// notice appear in all copies and that both that copyright notice and this // permission notice appear in supporting documentation. -// The author makes no representations about the -// suitability of this software for any purpose. It is provided "as is" +// The author makes no representations about the +// suitability of this software for any purpose. It is provided "as is" // without express or implied warranty. //////////////////////////////////////////////////////////////////////////////// @@ -50,6 +50,7 @@ void test_typelist_foreach_forward() Loki::ForEachType< MyTypeList, NumMeth > dummy( num_meth ); const std::vector& called_for = num_meth.called_for_; + (void)called_for; std::string int_typename = typeid( static_cast(0) ).name(); std::string dou_typename = typeid( static_cast(0) ).name(); @@ -71,6 +72,7 @@ void test_typelist_foreach_backward() Loki::ForEachType< MyTypeList, NumMeth, Loki::OrderPolicyBackward > dummy( num_meth ); const std::vector& called_for = num_meth.called_for_; + (void)called_for; std::string dou_typename = typeid( static_cast(0) ).name(); std::string str_typename = typeid( dou_typename ).name(); @@ -109,10 +111,12 @@ int main() { Loki::RegisterOnCreateSet registerAllClasses; Loki::UnRegisterOnDeleteSet unregisterAllClasses; + (void)registerAllClasses; + (void)unregisterAllClasses; Base* foo = BaseFactory::Instance().CreateObject("Foo"); Base* boo = BaseFactory::Instance().CreateObject("Boo"); - + foo->foo(); boo->foo();