Fix a gcc-related compilation error.
PiperOrigin-RevId: 792592986 Change-Id: I6bd49d3c739a58f9b611fe24594bd3f11e757c5b
This commit is contained in:
committed by
Copybara-Service
parent
8b5213c557
commit
19781b60a1
@@ -6876,6 +6876,8 @@ mjtDataType sensorDatatype(mjtSensor type) {
|
||||
case mjSENS_USER:
|
||||
return mjDATATYPE_REAL;
|
||||
}
|
||||
|
||||
return mjDATATYPE_REAL; // all cases are covered but GCC is extra persnickety
|
||||
}
|
||||
|
||||
// return sensor needstage
|
||||
@@ -6936,6 +6938,8 @@ mjtStage sensorNeedstage(mjtSensor type) {
|
||||
case mjSENS_USER:
|
||||
return mjSTAGE_POS;
|
||||
}
|
||||
|
||||
return mjSTAGE_POS; // all cases are covered but GCC is extra persnickety
|
||||
}
|
||||
|
||||
// compiler
|
||||
|
||||
Reference in New Issue
Block a user