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:
Jaye Evins
2025-12-06 15:58:38 -05:00
committed by GitHub
parent 44a10fc796
commit b6cac2d208
10 changed files with 41 additions and 18 deletions
+11 -1
View File
@@ -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")