3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-22 18:14:00 +00:00

Fix unused parameter warnings in empty override functions by omitting parameter names (#8174)

* Initial plan

* Fix unused parameter warnings in empty override functions

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Omit parameter names in empty override functions instead of casting to void

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
Copilot 2026-01-12 21:27:33 -08:00 committed by GitHub
parent bb6cd7cd0e
commit daefb4ddfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 19 additions and 19 deletions

View file

@ -121,11 +121,11 @@ public:
m_opt(opt)
{}
void reset(cmd_context & ctx) override { }
void reset(cmd_context &) override { }
char const * get_usage() const override { return "<term>"; }
char const * get_descr(cmd_context & ctx) const override { return "check sat modulo objective function";}
unsigned get_arity() const override { return 1; }
void prepare(cmd_context & ctx) override {}
void prepare(cmd_context &) override { }
cmd_arg_kind next_arg_kind(cmd_context & ctx) const override { return CPK_EXPR; }
void set_next_arg(cmd_context & ctx, expr * t) override {
@ -152,11 +152,11 @@ public:
m_opt(opt)
{}
void reset(cmd_context & ctx) override { }
void reset(cmd_context &) override { }
char const * get_usage() const override { return "(get-objectives)"; }
char const * get_descr(cmd_context & ctx) const override { return "retrieve the objective values (after optimization)"; }
unsigned get_arity() const override { return 0; }
void prepare(cmd_context & ctx) override {}
void prepare(cmd_context &) override { }
void failure_cleanup(cmd_context & ctx) override {