Skip to content

Commit

Permalink
Merge pull request mlpack#413 from coatless-mlpack/bugfix/unused-vari…
Browse files Browse the repository at this point in the history
…ables

Bugfix/unused variables
  • Loading branch information
rcurtin authored Nov 30, 2024
2 parents 9406243 + c456e8e commit 92468ea
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ target_include_directories(ensmallen INTERFACE
if(MSVC)
target_compile_options(ensmallen INTERFACE $<BUILD_INTERFACE:/Wall>)
else()
target_compile_options(ensmallen INTERFACE $<BUILD_INTERFACE:-Wall -Wpedantic -Wunused-parameter>)
target_compile_options(ensmallen INTERFACE $<BUILD_INTERFACE:-Wall -Wpedantic -Wunused-parameter -Wunused-variable -Wunused-private-field>)
endif()

# Find OpenMP and link it.
Expand Down
6 changes: 0 additions & 6 deletions include/ensmallen_bits/agemoea/agemoea.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,6 @@ class AGEMOEA
//! Probability that crossover will occur.
double crossoverProb;

//! Probability that mutation will occur.
double mutationProb;

//! Strength of the mutation.
double mutationStrength;

//! The crowding degree of the mutation. Higher value produces a mutant
//! resembling its parent.
double distributionIndex;
Expand Down
1 change: 0 additions & 1 deletion include/ensmallen_bits/problems/dtlz/dtlz2_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ namespace test {
*/
arma::Row<typename MatType::elem_type> g(const MatType& coords)
{
size_t k = numVariables - numObjectives + 1;

// Convenience typedef.
typedef typename MatType::elem_type ElemType;
Expand Down
1 change: 0 additions & 1 deletion include/ensmallen_bits/problems/dtlz/dtlz4_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ namespace test {
*/
arma::Row<typename MatType::elem_type> g(const MatType& coords)
{
size_t k = numVariables - numObjectives + 1;

// Convenience typedef.
typedef typename MatType::elem_type ElemType;
Expand Down
1 change: 0 additions & 1 deletion include/ensmallen_bits/problems/dtlz/dtlz5_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ namespace test {
*/
arma::Row<typename MatType::elem_type> g(const MatType& coords)
{
size_t k = numVariables - numObjectives + 1;

// Convenience typedef.
typedef typename MatType::elem_type ElemType;
Expand Down
1 change: 0 additions & 1 deletion include/ensmallen_bits/problems/dtlz/dtlz6_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ namespace test {
*/
arma::Row<typename MatType::elem_type> g(const MatType& coords)
{
size_t k = numVariables - numObjectives + 1;

// Convenience typedef.
typedef typename MatType::elem_type ElemType;
Expand Down
1 change: 0 additions & 1 deletion include/ensmallen_bits/problems/dtlz/dtlz7_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ namespace test {
arma::Row<typename MatType::elem_type> h(
const MatType& coords, const arma::Row<typename MatType::elem_type>& G)
{
size_t k = numVariables - numObjectives + 1;

// Convenience typedef.
typedef typename MatType::elem_type ElemType;
Expand Down
1 change: 0 additions & 1 deletion include/ensmallen_bits/problems/maf/maf5_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ namespace test {
*/
arma::Row<typename MatType::elem_type> g(const MatType& coords)
{
size_t k = numVariables - numObjectives + 1;

// Convenience typedef.
typedef typename MatType::elem_type ElemType;
Expand Down
1 change: 0 additions & 1 deletion include/ensmallen_bits/problems/maf/maf6_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ namespace test {
*/
arma::Row<typename MatType::elem_type> g(const MatType& coords)
{
size_t k = numVariables - numObjectives + 1;

// Convenience typedef.
typedef typename MatType::elem_type ElemType;
Expand Down

0 comments on commit 92468ea

Please sign in to comment.