Make warnings more strict and fix one warning caught by gcc
This commit is contained in:
@@ -47,11 +47,15 @@ else(READLINE_LIBRARY)
|
|||||||
SET (READLINE_FLAG )
|
SET (READLINE_FLAG )
|
||||||
endif(READLINE_LIBRARY)
|
endif(READLINE_LIBRARY)
|
||||||
|
|
||||||
#SET (CMAKE_C_FLAGS_REL " -Wall -O3 ${READLINE_FLAG}")
|
IF(MSVC)
|
||||||
#SET (CMAKE_CXX_FLAGS_REL " -Wall -O3 ${READLINE_FLAG}")
|
IF (CMAKE_BUILD_TYPE MATCHES "Debug")
|
||||||
|
ADD_DEFINITIONS(/W4 /Wall)
|
||||||
#SET (CMAKE_C_FLAGS " -Wall -ggdb ${READLINE_FLAG}")
|
ELSE()
|
||||||
#SET (CMAKE_CXX_FLAGS " -Wall -ggdb ${READLINE_FLAG}")
|
ADD_DEFINITIONS(/W3)
|
||||||
|
ENDIF()
|
||||||
|
ELSE()
|
||||||
|
ADD_DEFINITIONS(-Wall -Wextra)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
include_directories(include)
|
include_directories(include)
|
||||||
|
|
||||||
|
@@ -264,7 +264,7 @@ namespace chaiscript
|
|||||||
*http://www.sgi.com/tech/stl/FrontInsertionSequence.html
|
*http://www.sgi.com/tech/stl/FrontInsertionSequence.html
|
||||||
*/
|
*/
|
||||||
template<typename ContainerType>
|
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)();
|
typedef typename ContainerType::reference (ContainerType::*frontptr)();
|
||||||
m->add(fun(static_cast<frontptr>(&ContainerType::front)), "front");
|
m->add(fun(static_cast<frontptr>(&ContainerType::front)), "front");
|
||||||
|
Reference in New Issue
Block a user