Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/unused variables #413

Merged
merged 4 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading