Skip to content

Commit

Permalink
fixing warnings #3
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Feb 6, 2024
1 parent e1ee27e commit 12b10fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/foreign/PHEMlight/V5/cpp/CEP.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ namespace PHEMlightdllV5 {
bool privateHeavyVehicle;
std::string privateFuelType;
std::string privateCalcType;
eNormalizingType privateNormalizingType;
double privateRatedPower;
double privateNormalizingPower;
double privateDrivingPower;

public:
CEP(VEHPHEMLightJSON::VEH* Vehicle, std::vector<std::string>& headerLineFCvalues, std::vector<std::vector<double> >& matrixFCvalues, std::vector<std::string>& headerLinePollutants, std::vector<std::vector<double> >& matrixPollutants, std::vector<double>& idlingFCvalues, std::vector<double>& idlingPollutants);
Expand Down
1 change: 1 addition & 0 deletions src/netbuild/NBOwnTLDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ NBOwnTLDef::computeLogicAndConts(int brakingTimeSeconds, bool onlyConts) {
updatedState = true;
}
}
UNUSED_PARAMETER(updatedState); // disable warning
#ifdef DEBUG_PHASES
if (DEBUGCOND) {
if (updatedState) {
Expand Down
2 changes: 1 addition & 1 deletion src/netedit/elements/additional/GNEAdditionalHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void
GNEAdditionalHandler::buildChargingStation(const CommonXMLStructure::SumoBaseObject* sumoBaseObject, const std::string& id,
const std::string& laneID, const double startPos, const double endPos, const std::string& name, const double chargingPower,
const double efficiency, const bool chargeInTransit, const SUMOTime chargeDelay, const std::string& chargeType,
const SUMOTime waitingTime, const bool friendlyPosition, const std::string& parkingAreaID, const Parameterised::Map& parameters) {
const SUMOTime waitingTime, const bool friendlyPosition, const std::string& /* parkingAreaID */, const Parameterised::Map& parameters) {
// check conditions
if (!SUMOXMLDefinitions::isValidAdditionalID(id)) {
writeInvalidID(SUMO_TAG_CHARGING_STATION, id);
Expand Down
4 changes: 2 additions & 2 deletions src/utils/emissions/HelpersPHEMlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ HelpersPHEMlight::getEmission(const PHEMCEP* oldCep, PHEMlightdll::CEP* currCep,


double
HelpersPHEMlight::getModifiedAccel(const SUMOEmissionClass c, const double v, const double a, const double slope) const {
HelpersPHEMlight::getModifiedAccel(const SUMOEmissionClass c, const double v, const double a, const double slope, const EnergyParams* /* param */) const {
PHEMlightdll::CEP* currCep = myCEPs.count(c) == 0 ? 0 : myCEPs.find(c)->second;
if (currCep != nullptr) {
return v == 0.0 ? 0.0 : MIN2(a, currCep->GetMaxAccel(v, slope));
Expand Down Expand Up @@ -291,7 +291,7 @@ HelpersPHEMlight::compute(const SUMOEmissionClass c, const PollutantsInterface::
#endif
PHEMlightdll::CEP* currCep = myCEPs.count(c) == 0 ? 0 : myCEPs.find(c)->second;
if (currCep != nullptr) {
const double corrAcc = getModifiedAccel(c, corrSpeed, a, slope);
const double corrAcc = getModifiedAccel(c, corrSpeed, a, slope, param);
if (currCep->getFuelType() != PHEMlightdll::Constants::strBEV &&
corrAcc < currCep->GetDecelCoast(corrSpeed, corrAcc, slope) &&
corrSpeed > PHEMlightdll::Constants::ZERO_SPEED_ACCURACY) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/emissions/HelpersPHEMlight.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class HelpersPHEMlight : public PollutantsInterface::Helper {
* @param[in] slope The road's slope at vehicle's position [deg]
* @return the modified acceleration
*/
virtual double getModifiedAccel(const SUMOEmissionClass c, const double v, const double a, const double slope) const;
virtual double getModifiedAccel(const SUMOEmissionClass c, const double v, const double a, const double slope, const EnergyParams* param) const;

/** @brief Returns the maximum deceleration value (as a negative number), which can still be considered as non-braking.
* @param[in] c the emission class
Expand Down

0 comments on commit 12b10fa

Please sign in to comment.