wip
This commit is contained in:
parent
b06167f229
commit
fc09d34d32
@ -72,8 +72,8 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
|||||||
function(add_cxx_compile_options option)
|
function(add_cxx_compile_options option)
|
||||||
add_compile_options("$<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,CXX>:${option}>")
|
add_compile_options("$<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,CXX>:${option}>")
|
||||||
endfunction()
|
endfunction()
|
||||||
add_compile_definitions("--Wno-#warnings")
|
|
||||||
add_cxx_compile_options(-Wstrict-overflow=1)
|
add_cxx_compile_options(-Wstrict-overflow=1)
|
||||||
|
add_cxx_compile_options(-Wdelete-incomplete)
|
||||||
add_cxx_compile_options(-Wduplicated-cond)
|
add_cxx_compile_options(-Wduplicated-cond)
|
||||||
add_cxx_compile_options(-Wdisabled-optimization)
|
add_cxx_compile_options(-Wdisabled-optimization)
|
||||||
add_cxx_compile_options(-Winit-self)
|
add_cxx_compile_options(-Winit-self)
|
||||||
@ -84,6 +84,8 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
|
|||||||
add_cxx_compile_options(-Wmisleading-indentation)
|
add_cxx_compile_options(-Wmisleading-indentation)
|
||||||
add_cxx_compile_options(-Wno-return-local-addr)
|
add_cxx_compile_options(-Wno-return-local-addr)
|
||||||
add_cxx_compile_options(-Wodr)
|
add_cxx_compile_options(-Wodr)
|
||||||
|
add_cxx_compile_options(-Wpointer-arith)
|
||||||
|
add_cxx_compile_options(-Wredundant-decls)
|
||||||
add_cxx_compile_options(-Wreorder)
|
add_cxx_compile_options(-Wreorder)
|
||||||
add_cxx_compile_options(-Wshift-negative-value)
|
add_cxx_compile_options(-Wshift-negative-value)
|
||||||
add_cxx_compile_options(-Wsizeof-array-argument)
|
add_cxx_compile_options(-Wsizeof-array-argument)
|
||||||
|
|||||||
@ -313,8 +313,8 @@ class StaticGraph
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
NodeIterator number_of_nodes;
|
NodeIterator number_of_nodes = 0;
|
||||||
EdgeIterator number_of_edges;
|
EdgeIterator number_of_edges = 0;
|
||||||
|
|
||||||
Vector<NodeArrayEntry> node_array;
|
Vector<NodeArrayEntry> node_array;
|
||||||
Vector<EdgeArrayEntry> edge_array;
|
Vector<EdgeArrayEntry> edge_array;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user