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/disk.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hscript/disk.cc') diff --git a/hscript/disk.cc b/hscript/disk.cc index ecd0afa..05fb6d2 100644 --- a/hscript/disk.cc +++ b/hscript/disk.cc @@ -60,7 +60,7 @@ bool is_block_device(const std::string &key, long line, Key *DiskId::parseFromData(const std::string &data, int lineno, int *errors, - int *warnings) { + int *) { std::string block, ident; std::string::size_type block_end = data.find_first_of(' '); if(block_end == std::string::npos) { @@ -139,7 +139,7 @@ bool DiskId::execute(ScriptOptions options) const { Key *DiskLabel::parseFromData(const std::string &data, int lineno, int *errors, - int *warnings) { + int *) { std::string block, label; std::string::size_type sep = data.find_first_of(' '); LabelType type; @@ -660,7 +660,7 @@ bool Filesystem::execute(ScriptOptions) const { Key *Mount::parseFromData(const std::string &data, int lineno, int *errors, - int *warnings) { + int *) { std::string dev, where, opt; std::string::size_type where_pos, opt_pos; bool any_failure = false; -- cgit v1.2.3-60-g2f50