diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | hscript/script.cc | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b33b88d..c423185 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ add_definitions(-DVERSTR="${PROJECT_VERSION}") if(MSVC) add_compile_options(/W4 /WX) else() - add_compile_options(-Wall -Wextra -Werror) + add_compile_options(-Wall -Wextra -Wno-unused-parameter -Werror) endif() diff --git a/hscript/script.cc b/hscript/script.cc index 5a9dd8e..c99abe5 100644 --- a/hscript/script.cc +++ b/hscript/script.cc @@ -285,9 +285,6 @@ 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 |