Fix several compile issues (#261)
Fixed several code issues. Mostly pedantic compiler warnings. But also a sign issue exposed by newer compilers (#228, #260)
This commit is contained in:
+11
-1
@@ -140,7 +140,17 @@ find_package (Qt5Test 5.6 QUIET)
|
||||
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
|
||||
#
|
||||
# Uncomment to compile everything with aggressively pedantic options
|
||||
# (not recommended -- only for testing -- also not portable)
|
||||
# (not recommended -- only for testing)
|
||||
#
|
||||
#add_compile_options("-Wall" "-Wextra" "-Wpedantic" "-Wno-unused-parameter" "-Werror")
|
||||
|
||||
# Uncomment to always compile with debug symbols
|
||||
add_compile_options("-g")
|
||||
endif ()
|
||||
if (${CMAKE_CXX_COMPILER_ID} MATCHES "^.*Clang$") # "Clang", "AppleClang", etc.
|
||||
#
|
||||
# Uncomment to compile everything with aggressively pedantic options
|
||||
# (not recommended -- only for testing)
|
||||
#
|
||||
#add_compile_options("-Wall" "-Wextra" "-Wpedantic" "-Wno-unused-parameter" "-Werror")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user