diff --git a/include/aidge/operator/Scaling.hpp b/include/aidge/operator/Scaling.hpp
index 114ce5c0a1b7e8ccdb696b1c3a12687ea8d0c42d..e158ecd7567eb683558d9e09a6cf03e5cc35ce42 100644
--- a/include/aidge/operator/Scaling.hpp
+++ b/include/aidge/operator/Scaling.hpp
@@ -55,9 +55,10 @@ public:
         setDatatype(DataType::Float32);
     }
 
-    void associateInput(__attribute__((unused)) const IOIndex_t inputIdx, std::shared_ptr<Data> data) override final {
+    void associateInput(const IOIndex_t inputIdx, std::shared_ptr<Data> data) override final {
         assert(inputIdx == 0 && "operator supports only 1 input");
         assert(strcmp(data->type(), Tensor::Type)==0 && "input data must be of Tensor type");
+        (void) inputIdx; //avoid unused warning
         mInput = std::dynamic_pointer_cast<Tensor>(data);
     }