Skip to content

[SEVERE] fix: failed to build dependency imgui with latest Clang 21 on MacOS 26.3.1#36

Open
XDflight wants to merge 1 commit intoCMU-Graphics:mainfrom
XDflight:fix-qda-clang21
Open

[SEVERE] fix: failed to build dependency imgui with latest Clang 21 on MacOS 26.3.1#36
XDflight wants to merge 1 commit intoCMU-Graphics:mainfrom
XDflight:fix-qda-clang21

Conversation

@XDflight
Copy link
Copy Markdown

Ported upstream fix ocornut/imgui@88e2327.

Copilot AI review requested due to automatic review settings March 30, 2026 16:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ports an upstream Dear ImGui fix to restore successful builds with the latest Clang 21 on macOS by suppressing a new warning that is treated as an error in this repo.

Changes:

  • Suppress Clang’s -Wnontrivial-memaccess warning across multiple ImGui translation units/headers.
  • Align warning-suppression blocks in ImGui sources to avoid build breaks under -Werror on newer toolchains.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
deps/imgui/imgui_widgets.cpp Ignore -Wnontrivial-memaccess in the Clang warning-suppression block.
deps/imgui/imgui_tables.cpp Ignore -Wnontrivial-memaccess in the Clang warning-suppression block.
deps/imgui/imgui_internal.h Ignore -Wnontrivial-memaccess in the Clang warning-suppression block.
deps/imgui/imgui_draw.cpp Ignore -Wnontrivial-memaccess in the Clang warning-suppression block.
deps/imgui/imgui.h Ignore -Wnontrivial-memaccess in the Clang warning-suppression block (needs guarding for older Clang).
deps/imgui/imgui.cpp Ignore -Wnontrivial-memaccess in the Clang warning-suppression block.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants