Repository navigation
Remove obsolete (and loud) warning ‘-Wno-unused-member-function’ - #8242
Conversation
cleans up compiler warning: ``` cc1plus: note: unrecognized command-line option ‘-Wno-unused-member-function’ may have been intended to silence earlier diagnostics ```
WalkthroughConditionalized EXTRA_WARNINGS in Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Dev as Developer (CMake)
participant CMake as CMake Configure
participant Compiler as Compiler
Dev->>CMake: Run configure for pyOpenMS
CMake->>Compiler: Detect compiler type
alt Compiler is Clang (Linux/Apple)
note right of CMake #DDEBF7: Clang path\n(EXTRA_WARNINGS includes\n`-Wno-unused-member-function`)
CMake->>CMake: Append full EXTRA_WARNINGS set
else Compiler is non-Clang
note right of CMake #F7F2DD: Non-Clang path\n(`-Wno-unused-member-function` omitted)
CMake->>CMake: Append reduced EXTRA_WARNINGS set
end
CMake->>Dev: Generate build files (warnings set)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
I think this unrecognized compiler option might be compiler dependent. @jpfeuffer do you know if the warning @poshul wants to remove is needed? |
|
Where does this warning show up? Which compiler? |
|
Yes seems to be clang specific. Should be guarded accordingly then. I assume you would get loud warnings if you remove it there then. |
|
Ok so just check for clang? |
|
Looks good to me. Not sure if there is a shorter way to get the compiler in our build system. |
|
I think it's correct, although a list append might have been slightly less maintenance in the future. |
|
@copilot Use list append |
|
@copilot do it |
|
too lazy I guess |
|
@poshul maybe it listens to you ;) |
cleans up compiler warning:
Description
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
Advanced commands (admins / reviewer only)
Click to expand
/reformat(experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.rebuild jenkinswill retrigger Jenkins-based CI buildsSummary by CodeRabbit