Skip to content

Conversation

@Al2Klimov
Copy link
Member

Every of these parameters exists for a reason.
The best we can do is to convince the compiler.

@Al2Klimov Al2Klimov added the core/quality Improve code, libraries, algorithms, inline docs label Mar 24, 2023
@Al2Klimov Al2Klimov added this to the 2.14.0 milestone Mar 24, 2023
@Al2Klimov Al2Klimov requested a review from julianbrost March 24, 2023 14:24
@cla-bot cla-bot bot added the cla/signed label Mar 24, 2023
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch 2 times, most recently from 9c16ced to 84190e9 Compare March 29, 2023 10:12
@Al2Klimov Al2Klimov removed this from the 2.14.0 milestone Mar 30, 2023
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from 84190e9 to d3fba73 Compare April 6, 2023 11:02
@Al2Klimov
Copy link
Member Author

Al2Klimov commented Apr 11, 2023

@Al2Klimov Al2Klimov self-assigned this Apr 11, 2023
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from d3fba73 to 6305846 Compare April 11, 2023 12:44
@Al2Klimov Al2Klimov removed their assignment Apr 11, 2023
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from 6305846 to d319073 Compare April 22, 2025 12:02
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from d319073 to c791fee Compare July 8, 2025 15:55
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from c791fee to a96203f Compare August 29, 2025 14:33
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from a96203f to 9e47055 Compare October 17, 2025 08:05
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from 9e47055 to b1e7c62 Compare October 17, 2025 14:38
@jschmidt-icinga
Copy link
Contributor

jschmidt-icinga commented Jan 20, 2026

Sorry for leaving this lying around again, but I had what I thought was an open review comment (but which was "pending" and never sent) and then forgot about it. Can you rebase this again, then I'll approve it?

@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from b1e7c62 to 10e6f0c Compare January 20, 2026 09:38
@Al2Klimov Al2Klimov removed the request for review from julianbrost January 20, 2026 09:39
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from 10e6f0c to 3ced1fe Compare January 20, 2026 09:52
@jschmidt-icinga
Copy link
Contributor

According to the alpine:bash runner there's more unused parameter warnings not yet fixed in this PR, likely because they were added in the meantime.

@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from 3ced1fe to 24e5f6c Compare January 21, 2026 10:03
@jschmidt-icinga
Copy link
Contributor

You probably only looked at the ones in the "Annotations" widget at the top, but that's limited to 10 results. There's still a few more if you look into the build output:

virtual icinga::Value StatusTargetProvider::GetTargetByName(const icinga::String&, const icinga::String&) const
virtual icinga::String StatusTargetProvider::GetPluralName(const icinga::String&) const
virtual bool icinga::StatusHandler::HandleRequest(const Ptr&, const icinga::HttpRequest&, icinga::HttpResponse&, boost::asio::yield_context&)

virtual bool icinga::TemplateQueryHandler::HandleRequest(const Ptr&, const icinga::HttpRequest&, icinga::HttpResponse&, boost::asio::yield_context&)

virtual void TypeTargetProvider::FindTargets(const icinga::String&, const std::function<void(const icinga::Value&)>&) const
virtual icinga::Value TypeTargetProvider::GetTargetByName(const icinga::String&, const icinga::String&) const
virtual icinga::String TypeTargetProvider::GetPluralName(const icinga::String&) const
virtual bool icinga::TypeQueryHandler::HandleRequest(const Ptr&, const icinga::HttpRequest&, icinga::HttpResponse&, boost::asio::yield_context&)

virtual void VariableTargetProvider::FindTargets(const icinga::String&, const std::function<void(const icinga::Value&)>&) const
virtual icinga::Value VariableTargetProvider::GetTargetByName(const icinga::String&, const icinga::String&) const
virtual icinga::String VariableTargetProvider::GetPluralName(const icinga::String&) const
virtual bool icinga::VariableQueryHandler::HandleRequest(const icinga::WaitGroup::Ptr&, const icinga::HttpRequest&, icinga::HttpResponse&, boost::asio::yield_context&)

static icinga::Downtime::Ptr icinga::Downtime::AddDowntime(const icinga::Checkable::Ptr&, const icinga::String&, const icinga::String&, double, double, bool, const Ptr&, double, const icinga::String&, const icinga::String&, const icinga::String&, const icinga::String&, const icinga::MessageOrigin::Ptr&)

@jschmidt-icinga
Copy link
Contributor

jschmidt-icinga commented Jan 23, 2026

Still missed one: origin in Downtime::Ptr Downtime::AddDowntime(). I see.

And sorry, now there's merge conflicts too (my fault 🙈).

@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch 3 times, most recently from 7908265 to 8cbe63f Compare January 23, 2026 12:00
Every of these parameters exists for a reason.
The best we can do is to convince the compiler.
@Al2Klimov Al2Klimov force-pushed the silence-compiler-warnings-about-unused-parameters branch from 8cbe63f to 4ba46f9 Compare January 23, 2026 12:31
@Al2Klimov Al2Klimov added this to the 2.16.0 milestone Jan 23, 2026
@Al2Klimov Al2Klimov merged commit 363a051 into master Jan 23, 2026
28 checks passed
@Al2Klimov Al2Klimov deleted the silence-compiler-warnings-about-unused-parameters branch January 23, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla/signed core/quality Improve code, libraries, algorithms, inline docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants