Skip to content

Commit

Permalink
fixing warnings #3
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Dec 19, 2024
1 parent 893dcb1 commit c1becfd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/netedit/elements/network/GNEConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@
#include "GNEInternalLane.h"


// ===========================================================================
// static member definitions
// ===========================================================================
static const int NUM_POINTS = 5;

// ===========================================================================
// method definitions
// ===========================================================================
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/frames/GNEAttributesEditorRow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ GNEAttributesEditorRow::showAttributeRow(const GNEAttributeProperties& attrPrope
// show elements depending of attribute properties
if (attrProperty.isActivatable()) {
showAttributeToggleEnable(attrProperty, firstEditedAC->isAttributeEnabled(myAttribute), attributeEnabled);
} else if ((myAttribute == GNE_ATTR_PARENT)) {
} else if (myAttribute == GNE_ATTR_PARENT) {
showAttributeReparent(attributeEnabled);
} else if ((myAttribute == SUMO_ATTR_TYPE) && tagProperty.hasTypeParent()) {
showAttributeInspectParent(attrProperty, attributeEnabled);
Expand Down
4 changes: 3 additions & 1 deletion src/utils/router/AFCentralizedSPTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,21 @@ class AFCentralizedSPTree {
const SUMOVehicleClass vClass = vehicle == 0 ? SVC_IGNORING : vehicle->getVClass();
std::vector<const E*> fromEdgesAsVector(fromEdges.begin(), fromEdges.end());
init(fromEdgesAsVector, vehicle, msTime);
int num_visited = 0;
size_t numberOfVisitedFromEdges = 0;
bool minIsFromEdge = false;
#ifdef CSPT_DEBUG_LEVEL_0
size_t numberOfTouchedSupercellEdges = 0;
int num_visited = 0;
#endif
#ifdef _DEBUG
const Cell* supercell = cell->getSupercell();
#endif
const bool mayRevisit = true;

while (!myFrontierList.empty()) {
#ifdef CSPT_DEBUG_LEVEL_0
num_visited += 1;
#endif
// use the edge with the minimal length
typename SUMOAbstractRouter<E, V>::EdgeInfo* minimumInfo = myFrontierList.front();
const E* const minEdge = minimumInfo->edge;
Expand Down
10 changes: 8 additions & 2 deletions src/utils/router/AFRouter.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class AFRouter : public SUMOAbstractRouter<E, V> {
myWeightPeriod(weightPeriod),
myValidUntil(0),
myBuilder(new AFBuilder<E, N, V, M>(myPartition->getNumberOfLevels(), edges, unbuildIsWarning,
flippedOperation, flippedLookup, havePermissions, haveRestrictions)),
flippedOperation, flippedLookup, havePermissions, haveRestrictions)),
myType("arcFlagRouter"),
myQueryVisits(0),
myNumQueries(0),
Expand Down Expand Up @@ -209,7 +209,7 @@ class AFRouter : public SUMOAbstractRouter<E, V> {
myWeightPeriod(weightPeriod),
myValidUntil(0),
myBuilder(new AFBuilder<E, N, V, M>(myPartition->getNumberOfLevels(), edges, unbuildIsWarning,
flippedOperation, flippedLookup, havePermissions, haveRestrictions)),
flippedOperation, flippedLookup, havePermissions, haveRestrictions)),
myType("arcFlagRouter"),
myQueryVisits(0),
myNumQueries(0),
Expand Down Expand Up @@ -423,9 +423,11 @@ class AFRouter : public SUMOAbstractRouter<E, V> {
this->myAmClean = false;
// loop
int num_visited = 0;
#ifdef AFRO_DEBUG_LEVEL_1
int numberOfFollowers = 0;
int numberOfAvoidedFollowers = 0;
int numberOfEmptyFlagVectors = 0;
#endif
const bool mayRevisit = myLookupTable != nullptr && !myLookupTable->consistent();
const double speed = vehicle == nullptr ? myMaxSpeed : MIN2(vehicle->getMaxSpeed(), myMaxSpeed * vehicle->getChosenSpeedFactor());

Expand Down Expand Up @@ -469,10 +471,12 @@ class AFRouter : public SUMOAbstractRouter<E, V> {
if (followerInfo.prohibited || this->isProhibited(follower.first, vehicle)) {
continue;
}
#ifdef AFRO_DEBUG_LEVEL_1
numberOfFollowers++;
if (followerFlagInfo->arcFlags.empty()) {
numberOfEmptyFlagVectors++;
}
#endif
#ifdef AFRO_DEBUG_LEVEL_2
myFlagContextStartTime = SysUtils::getCurrentMillis();
#endif
Expand All @@ -482,7 +486,9 @@ class AFRouter : public SUMOAbstractRouter<E, V> {
myFlagContextTimeSum += (SysUtils::getCurrentMillis() - myFlagContextStartTime);
#endif
if (!flag(followerFlagInfo, flagContext)) {
#ifdef AFRO_DEBUG_LEVEL_1
numberOfAvoidedFollowers++;
#endif
continue;
}

Expand Down

0 comments on commit c1becfd

Please sign in to comment.