Make warnings more strict and fix one warning caught by gcc

This commit is contained in:
Jason Turner
2010-07-30 16:25:58 +00:00
parent 4ec21ff552
commit b9ae4cd528
2 changed files with 10 additions and 6 deletions

View File

@@ -264,7 +264,7 @@ namespace chaiscript
*http://www.sgi.com/tech/stl/FrontInsertionSequence.html
*/
template<typename ContainerType>
ModulePtr front_insertion_sequence_type(const std::string &type, ModulePtr m = ModulePtr(new Module()))
ModulePtr front_insertion_sequence_type(const std::string &, ModulePtr m = ModulePtr(new Module()))
{
typedef typename ContainerType::reference (ContainerType::*frontptr)();
m->add(fun(static_cast<frontptr>(&ContainerType::front)), "front");