Enable compiler errors for implicit switch case fallthroughs.
Also unify warning options across Clang and GCC and fix minor issues that was surfaced by this. PiperOrigin-RevId: 508619655 Change-Id: I59b777bf2dfea4422485670e2427c7d3f5cf6405
This commit is contained in:
committed by
Copybara-Service
parent
8a53a33fd1
commit
5e989d18c3
@@ -316,7 +316,7 @@ int mjc_CapsuleBox(const mjModel* m, const mjData* d, mjContact* con,
|
||||
};
|
||||
mjtNum c[2];
|
||||
} d2;
|
||||
d2 p, s, d, c /*, tmp1*/;
|
||||
d2 p, s, d /*, c, tmp1*/;
|
||||
mjtNum u, v, w, e1, best /* ,e2 */, l /* , e3, e4 */;
|
||||
|
||||
bestdist = bestdistmax;
|
||||
@@ -366,8 +366,8 @@ int mjc_CapsuleBox(const mjModel* m, const mjData* d, mjContact* con,
|
||||
}
|
||||
}
|
||||
|
||||
c.x = s.x * ((c1 / 2) ? -1 : 1);
|
||||
c.y = s.y * ((c1 % 2) ? -1 : 1);
|
||||
// c.x = s.x * ((c1 / 2) ? -1 : 1);
|
||||
// c.y = s.y * ((c1 % 2) ? -1 : 1);
|
||||
|
||||
e1 = fabs(w) / l;
|
||||
// e2 = best / l;
|
||||
|
||||
Reference in New Issue
Block a user