Gui: Fix compiler warnings
This commit is contained in:
committed by
Kacper Donat
parent
aa785f78d6
commit
1af908409e
@@ -99,10 +99,10 @@ SoArrowGeometry::SoArrowGeometry()
|
||||
SO_KIT_ADD_CATALOG_ENTRY(_arrowBodyTranslation, SoTranslation, false, this, arrowBody, false);
|
||||
SO_KIT_ADD_CATALOG_ENTRY(_arrowTipTranslation, SoTranslation, false, this, arrowTip, false);
|
||||
|
||||
SO_KIT_ADD_FIELD(coneBottomRadius, (0.8));
|
||||
SO_KIT_ADD_FIELD(coneHeight, (2.5));
|
||||
SO_KIT_ADD_FIELD(cylinderHeight, (10.0));
|
||||
SO_KIT_ADD_FIELD(cylinderRadius, (0.1));
|
||||
SO_KIT_ADD_FIELD(coneBottomRadius, (0.8f));
|
||||
SO_KIT_ADD_FIELD(coneHeight, (2.5f));
|
||||
SO_KIT_ADD_FIELD(cylinderHeight, (10.0f));
|
||||
SO_KIT_ADD_FIELD(cylinderRadius, (0.1f));
|
||||
|
||||
SO_KIT_INIT_INSTANCE();
|
||||
|
||||
|
||||
@@ -97,10 +97,10 @@ SoRotatorGeometry::SoRotatorGeometry()
|
||||
|
||||
SO_KIT_ADD_CATALOG_ENTRY(_rotorPivotTranslation, SoTranslation, false, this, rotorPivot, false);
|
||||
|
||||
SO_KIT_ADD_FIELD(arcRadius, (8.0));
|
||||
SO_KIT_ADD_FIELD(arcRadius, (8.0f));
|
||||
SO_KIT_ADD_FIELD(arcAngle, (std::numbers::pi_v<float> / 2.0f));
|
||||
SO_KIT_ADD_FIELD(sphereRadius, (0.8));
|
||||
SO_KIT_ADD_FIELD(arcThickness, (4.0));
|
||||
SO_KIT_ADD_FIELD(sphereRadius, (0.8f));
|
||||
SO_KIT_ADD_FIELD(arcThickness, (4.0f));
|
||||
|
||||
SO_KIT_INIT_INSTANCE();
|
||||
|
||||
|
||||
@@ -416,7 +416,7 @@ std::unique_ptr<Expr> Parser::parseNumber()
|
||||
std::string unit = parseUnit();
|
||||
return std::make_unique<Number>(value, unit);
|
||||
}
|
||||
catch (std::invalid_argument& e) {
|
||||
catch (std::invalid_argument&) {
|
||||
THROWM(Base::ParserError, fmt::format("Invalid number: {}", number));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user