Skip to content

avoid some redundant and unused settings in tests among other cleanups / added and used WARN_UNUSED attribute#5284

Merged
firewave merged 10 commits intocppcheck-opensource:mainfrom
firewave:settings-x
Aug 9, 2023
Merged

avoid some redundant and unused settings in tests among other cleanups / added and used WARN_UNUSED attribute#5284
firewave merged 10 commits intocppcheck-opensource:mainfrom
firewave:settings-x

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

The check for redundant settings cannot be enabled by default as we have cases where the values are configurable. It might be possible to clean up some of those and use immutable objects instead.

@firewave firewave changed the title avoid some redundant and unused settings in tests avoid some redundant and unused settings in tests / added and used WARN_UNUSED attribute Jul 31, 2023
@firewave firewave changed the title avoid some redundant and unused settings in tests / added and used WARN_UNUSED attribute avoid some redundant and unused settings in tests among other cleanups / added and used WARN_UNUSED attribute Jul 31, 2023
@firewave
Copy link
Copy Markdown
Collaborator Author

I filed https://trac.cppcheck.net/ticket/11856 about the false negative in testcondition.cpp.

@firewave firewave force-pushed the settings-x branch 2 times, most recently from 23c809c to e39c030 Compare August 7, 2023 23:33
@firewave firewave marked this pull request as ready for review August 7, 2023 23:39
Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

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

lgtm

@firewave firewave merged commit 2502897 into cppcheck-opensource:main Aug 9, 2023
@firewave firewave deleted the settings-x branch August 9, 2023 10:43
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