Skip to content

Commit

Permalink
fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaller committed Nov 5, 2023
1 parent 5946830 commit f7cf94d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/interaction_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ bool InteractionType::_PrecheckIndividualNonSexConstraints(Individual *p_individ
return true;
}

void InteractionType::FillSparseVectorForReceiverPresences(SparseVector *sv, Individual *receiver, double *receiver_position, Subpopulation *exerter_subpop, SLiM_kdNode *kd_root, bool constraints_active)
void InteractionType::FillSparseVectorForReceiverPresences(SparseVector *sv, Individual *receiver, double *receiver_position, Subpopulation *exerter_subpop, SLiM_kdNode *kd_root, __attribute__((__unused__)) bool constraints_active)
{
#if DEBUG
// The caller should guarantee that the receiver and exerter species are compatible with the interaction
Expand Down Expand Up @@ -2713,7 +2713,7 @@ void InteractionType::FillSparseVectorForReceiverPresences(SparseVector *sv, Ind
sv->Finished();
}

void InteractionType::FillSparseVectorForReceiverDistances(SparseVector *sv, Individual *receiver, double *receiver_position, Subpopulation *exerter_subpop, SLiM_kdNode *kd_root, bool constraints_active)
void InteractionType::FillSparseVectorForReceiverDistances(SparseVector *sv, Individual *receiver, double *receiver_position, Subpopulation *exerter_subpop, SLiM_kdNode *kd_root, __attribute__((__unused__)) bool constraints_active)
{
#if DEBUG
// The caller should guarantee that the receiver and exerter species are compatible with the interaction
Expand Down Expand Up @@ -2763,7 +2763,7 @@ void InteractionType::FillSparseVectorForReceiverDistances(SparseVector *sv, Ind
sv->Finished();
}

void InteractionType::FillSparseVectorForPointDistances(SparseVector *sv, double *position, Subpopulation *exerter_subpop, SLiM_kdNode *kd_root)
void InteractionType::FillSparseVectorForPointDistances(SparseVector *sv, double *position, __attribute__((__unused__)) Subpopulation *exerter_subpop, SLiM_kdNode *kd_root)
{
// This is a special version of FillSparseVectorForReceiverDistances() used for nearestNeighborsOfPoint().
// It searches for neighbors of a point, without using a receiver, just a point.
Expand Down

0 comments on commit f7cf94d

Please sign in to comment.