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
This commit is contained in:
parent
6e39840984
commit
7122d03d7d
1 changed files with 10 additions and 6 deletions
|
@ -50,6 +50,7 @@ void test_typelist_foreach_forward()
|
||||||
Loki::ForEachType< MyTypeList, NumMeth > dummy( num_meth );
|
Loki::ForEachType< MyTypeList, NumMeth > dummy( num_meth );
|
||||||
|
|
||||||
const std::vector<NumMeth::IdxType>& called_for = num_meth.called_for_;
|
const std::vector<NumMeth::IdxType>& called_for = num_meth.called_for_;
|
||||||
|
(void)called_for;
|
||||||
|
|
||||||
std::string int_typename = typeid( static_cast<int>(0) ).name();
|
std::string int_typename = typeid( static_cast<int>(0) ).name();
|
||||||
std::string dou_typename = typeid( static_cast<double>(0) ).name();
|
std::string dou_typename = typeid( static_cast<double>(0) ).name();
|
||||||
|
@ -71,6 +72,7 @@ void test_typelist_foreach_backward()
|
||||||
Loki::ForEachType< MyTypeList, NumMeth, Loki::OrderPolicyBackward > dummy( num_meth );
|
Loki::ForEachType< MyTypeList, NumMeth, Loki::OrderPolicyBackward > dummy( num_meth );
|
||||||
|
|
||||||
const std::vector<NumMeth::IdxType>& called_for = num_meth.called_for_;
|
const std::vector<NumMeth::IdxType>& called_for = num_meth.called_for_;
|
||||||
|
(void)called_for;
|
||||||
|
|
||||||
std::string dou_typename = typeid( static_cast<double>(0) ).name();
|
std::string dou_typename = typeid( static_cast<double>(0) ).name();
|
||||||
std::string str_typename = typeid( dou_typename ).name();
|
std::string str_typename = typeid( dou_typename ).name();
|
||||||
|
@ -109,6 +111,8 @@ int main()
|
||||||
{
|
{
|
||||||
Loki::RegisterOnCreateSet<ClassList> registerAllClasses;
|
Loki::RegisterOnCreateSet<ClassList> registerAllClasses;
|
||||||
Loki::UnRegisterOnDeleteSet<ClassList> unregisterAllClasses;
|
Loki::UnRegisterOnDeleteSet<ClassList> unregisterAllClasses;
|
||||||
|
(void)registerAllClasses;
|
||||||
|
(void)unregisterAllClasses;
|
||||||
|
|
||||||
Base* foo = BaseFactory::Instance().CreateObject("Foo");
|
Base* foo = BaseFactory::Instance().CreateObject("Foo");
|
||||||
Base* boo = BaseFactory::Instance().CreateObject("Boo");
|
Base* boo = BaseFactory::Instance().CreateObject("Boo");
|
||||||
|
|
Loading…
Add table
Reference in a new issue