diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 18:38:30 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-31 18:38:30 -0500 |
commit | 945f0dd29d9d7b188e01ba27419c043bd0357bbb (patch) | |
tree | 30ef08811b1d5e368e38304e6e1f1d49344ca9ef /hscript/script.cc | |
parent | f1e509603806b71a282c076e4c6ef2c632761cd9 (diff) | |
download | horizon-945f0dd29d9d7b188e01ba27419c043bd0357bbb.tar.gz horizon-945f0dd29d9d7b188e01ba27419c043bd0357bbb.tar.bz2 horizon-945f0dd29d9d7b188e01ba27419c043bd0357bbb.tar.xz horizon-945f0dd29d9d7b188e01ba27419c043bd0357bbb.zip |
hscript: Remove unused paramaters and de-const-ify DiskLabel::type
Diffstat (limited to 'hscript/script.cc')
-rw-r--r-- | hscript/script.cc | 7 |
1 files changed, 5 insertions, 2 deletions
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<PkgInstall *>(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 |