Proper handling for unused parameter
Instead of ignoring the parameter warning via a compile flag we can
explicitly not give the parameter a valiable name. The compile will then
know that that the parameter is not expected to be used.
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I140f07eaad737f44c4791f37249f89849da15cae
diff --git a/meson.build b/meson.build
index b429dd8..3aebdd0 100644
--- a/meson.build
+++ b/meson.build
@@ -5,7 +5,6 @@
'warning_level=3',
'werror=true',
'cpp_std=c++14',
- 'cpp_args=-Wno-unused-parameter'
])
#-------------------------------------------------------------------------------
diff --git a/src/register/hei_operator_register.hpp b/src/register/hei_operator_register.hpp
index 5c225b1..5e40358 100644
--- a/src/register/hei_operator_register.hpp
+++ b/src/register/hei_operator_register.hpp
@@ -381,7 +381,7 @@
ConstantRegister& operator=(const ConstantRegister& r) = delete;
/** @brief Overloaded from parent class. */
- const BitString* getBitString(const Chip& i_chip) const override
+ const BitString* getBitString(const Chip&) const override
{
return &iv_result;
}