diff --git a/src/search/algorithms/named_vector.h b/src/search/algorithms/named_vector.h index 82f6abe748..66814dde21 100644 --- a/src/search/algorithms/named_vector.h +++ b/src/search/algorithms/named_vector.h @@ -67,7 +67,7 @@ class NamedVector { All unspecified names are empty by default. We use a static string here to avoid returning a reference to a local object. */ - static std::string empty = ""; + static std::string empty; return empty; } } diff --git a/src/search/operator_counting/delete_relaxation_constraints_rr.cc b/src/search/operator_counting/delete_relaxation_constraints_rr.cc index b6df81c48b..3225a0a80d 100644 --- a/src/search/operator_counting/delete_relaxation_constraints_rr.cc +++ b/src/search/operator_counting/delete_relaxation_constraints_rr.cc @@ -237,6 +237,7 @@ DeleteRelaxationConstraintsRR::create_auxiliary_variables( void DeleteRelaxationConstraintsRR::create_auxiliary_variables_ve( const TaskProxy &task_proxy, const VEGraph &ve_graph, LPVariables &variables, DeleteRelaxationConstraintsRR::LPVariableIDs &lp_var_ids) const { + utils::unused_variable(task_proxy); // Add e_{i,j} variables. for (pair edge : ve_graph.get_edges()) { lp_var_ids.e_ids[edge] = variables.size();