Commit 98585dbf authored by Burlen Loring's avatar Burlen Loring

Merge branch 'warning_cleanup' into 'master'

Warning cleanup

See merge request !136
parents 6235032d aa97d5a1
......@@ -15,7 +15,7 @@ endif()
if (NOT MSVC)
if (NOT CMAKE_CXX_FLAGS)
set(tmp "-fPIC -std=c++11 -Wall -Wextra -fpermissive")
set(tmp "-fPIC -std=c++11 -Wall -Wextra")
if (BUILD_STATIC_EXECS)
set(tmp "${tmp} -static -static-libgcc -static-libstdc++ -pthread -Wl,-Bstatic")
endif()
......
......@@ -74,5 +74,7 @@ if (ENABLE_PYTHON)
MAIN_DEPENDENCY ${input_file}
DEPENDS ${depend_file} ${depends}
COMMENT "Generating python bindings for ${input}...")
set_source_files_properties(${output}
PROPERTIES COMPILE_FLAGS -fpermissive)
endfunction()
endif()
......@@ -309,7 +309,7 @@ static int parse_args(int argc, char **argv)
#ifdef ENABLE_SENSEI
case('f'):
config_file = (char*)malloc(strlen(optarg) + 1);
strncpy(config_file, optarg, strlen(optarg) + 1);
strcpy(config_file, optarg);
break;
#else
case('b'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment