diff --git a/cmake/modules/CompileWarnings.cmake b/cmake/modules/CompileWarnings.cmake index 5e57d292c9..e7ea1b533a 100644 --- a/cmake/modules/CompileWarnings.cmake +++ b/cmake/modules/CompileWarnings.cmake @@ -47,7 +47,14 @@ macro(wpilib_target_warnings target) # Suppress warning "enumeration types with a fixed underlying type are a # Clang extension" if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT EMSCRIPTEN) - target_compile_options(${target} PRIVATE $<$:-Wno-fixed-enum-extension>) + if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 20.0) + target_compile_options( + ${target} + PRIVATE $<$:-Wno-fixed-enum-extension> + ) + else() + target_compile_options(${target} PRIVATE $<$:-Wno-c23-extensions>) + endif() endif() # Compress debug info with GCC diff --git a/sysid/src/main/native/include/sysid/view/Analyzer.h b/sysid/src/main/native/include/sysid/view/Analyzer.h index 4b6e258341..b856510621 100644 --- a/sysid/src/main/native/include/sysid/view/Analyzer.h +++ b/sysid/src/main/native/include/sysid/view/Analyzer.h @@ -208,8 +208,6 @@ class Analyzer : public glass::View { std::string m_exception; std::vector m_missingTests; - bool m_calcDefaults = false; - // This is true if the error popup needs to be displayed bool m_errorPopup = false; @@ -235,12 +233,8 @@ class Analyzer : public glass::View { // Data analysis std::unique_ptr m_manager; int m_dataset = 0; - int m_window = 8; - double m_threshold = 0.2; float m_stepTestDuration = 0; - bool combinedGraphFit = false; - // Logger wpi::Logger& m_logger; diff --git a/thirdparty/imgui_suite/CMakeLists.txt b/thirdparty/imgui_suite/CMakeLists.txt index 4396843f54..e117f221fe 100644 --- a/thirdparty/imgui_suite/CMakeLists.txt +++ b/thirdparty/imgui_suite/CMakeLists.txt @@ -53,5 +53,9 @@ target_include_directories( target_compile_features(imgui PUBLIC cxx_std_20) +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 20.0) + target_compile_options(imgui PUBLIC -Wno-nontrivial-memcall) +endif() + install(TARGETS imgui EXPORT imgui) export(TARGETS imgui FILE imgui.cmake NAMESPACE imgui::)