From 945f0dd29d9d7b188e01ba27419c043bd0357bbb Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 31 Oct 2019 18:38:30 -0500 Subject: hscript: Remove unused paramaters and de-const-ify DiskLabel::type --- hscript/script.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'hscript/script.cc') diff --git a/hscript/script.cc b/hscript/script.cc index 33e8c6d..5a9dd8e 100644 --- a/hscript/script.cc +++ b/hscript/script.cc @@ -244,8 +244,8 @@ struct Script::ScriptPrivate { return true; } - bool store_pkginstall(Keys::Key* obj, int lineno, int *errors, - int *warnings, ScriptOptions opts) { + bool store_pkginstall(Keys::Key* obj, int lineno, int *, int *warnings, + ScriptOptions opts) { PkgInstall *install = dynamic_cast(obj); for(auto &pkg : install->packages()) { if(opts.test(StrictMode) && packages.find(pkg) != packages.end()) { @@ -285,6 +285,9 @@ struct Script::ScriptPrivate { this->firmware = std::move(f); return true; #else + /* Shut up -Wunused-parameter. */ + assert(lineno != 0); + assert(errors != nullptr); assert(!f->test()); return true; #endif -- cgit v1.2.3-60-g2f50