Skip to content

muleunit: add missing override keyword on OnRun and OnUnhandledException (#663) - #664

Merged
mrjimenez merged 1 commit into
amule-project:masterfrom
got3nks:fix/muleunit-missing-override
May 20, 2026
Merged

muleunit: add missing override keyword on OnRun and OnUnhandledException (#663)#664
mrjimenez merged 1 commit into
amule-project:masterfrom
got3nks:fix/muleunit-missing-override

Conversation

@got3nks

@got3nks got3nks commented May 20, 2026

Copy link
Copy Markdown
Contributor

Closes #663.

UnitTestApp in unittests/muleunit/main.cpp overrides three virtuals on wxAppConsole / wxApp: OnInit, OnRun, and OnUnhandledException. Only OnInit had the override keyword on its declaration, so on clang's -Winconsistent-missing-override (default for any sibling having override) the other two trigger:

unittests/muleunit/main.cpp:72:6: warning: 'OnRun' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
unittests/muleunit/main.cpp:77:7: warning: 'OnUnhandledException' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]

Two-character fix: add override to both decls.

Same pattern as #625 (ServerSocket.h / ClientTCPSocket.h cleanup). The other warning @Stoatwblr saw in the same compile (libayatana-appindicator deprecation) is the documented known/deferred one — see #628.

Reported by @Stoatwblr.

Both methods in UnitTestApp override virtuals on wxAppConsole / wxApp
(wx/app.h:103 and :303). Clang -Winconsistent-missing-override fires
because the sibling OnInit in the same class already has override.
Same pattern as amule-project#625 (ServerSocket.h / ClientTCPSocket.h cleanup):
just add override to the two declarations.

Reported by @Stoatwblr in amule-project#663.
@mrjimenez
mrjimenez merged commit 6751d0c into amule-project:master May 20, 2026
12 checks passed
@got3nks
got3nks deleted the fix/muleunit-missing-override branch May 22, 2026 13:51
mrjimenez pushed a commit to mrjimenez/amule that referenced this pull request Jul 28, 2026
amule-project#664)

The macOS Navigate menu renders its accelerators with the native Option glyph automatically, but toolbar tooltips are plain text, so they still read "(Alt+N)". Build a platform-conditional suffix from the U+2325 codepoint rather than a raw literal, so it cannot be mangled by a narrow-to-wide conversion through a non-UTF-8 system encoding (macOS reports Mac OS Roman). Kept outside _() so no translated msgids change. Follow-up to amule-project#642.
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.

Clang(llvm) compilation warnings

2 participants