Skip to content

Drop stray override on non-virtual mock destructors - #1

Merged
kammce merged 1 commit into
mainfrom
fix-stray-destructor-override
Aug 23, 2026
Merged

Drop stray override on non-virtual mock destructors#1
kammce merged 1 commit into
mainfrom
fix-stray-destructor-override

Conversation

@kammce

@kammce kammce commented Aug 23, 2026

Copy link
Copy Markdown
Member

Summary

  • hal::usb::control_endpoint and hal::usb::interface both have protected, non-virtual destructors by design; stub_control_endpoint/stub_interface (test_package) and mock_control_endpoint/mock_interface (tests) incorrectly marked their destructors override.
  • Surfaced by a clean conan create build after bumping the libhal-util dependency version — masked previously by incremental build caching.

Test plan

  • conan create . -pr:a hal/tc/llvm -pr hal/mcu/stm32f103zg --build=missing — builds and test_package runs

hal::usb::control_endpoint and hal::usb::interface both have
protected, non-virtual destructors by design. Surfaced by a clean
conan create build after bumping libhal-util's version.
@kammce
kammce merged commit 7d86ddd into main Aug 23, 2026
0 of 9 checks passed
@kammce
kammce deleted the fix-stray-destructor-override branch August 23, 2026 12:38
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.

1 participant