Skip to content

Commit 4b8454b

Browse files
yuvaltassacopybara-github
authored andcommitted
Add semicolons after mjSORT macro calls.
PiperOrigin-RevId: 808587320 Change-Id: I9fd290b9a2b615647135f1250e87af8ea9bb81f6
1 parent 0e61a4a commit 4b8454b

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

cmake/MujocoOptions.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang
9292
-Wimplicit-fallthrough
9393
-Wunused
9494
-Wvla
95+
-Wno-extra-semi
9596
-Wno-int-in-bool-context
9697
-Wno-sign-compare
9798
-Wno-unknown-pragmas

sample/cmake/SampleOptions.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang
9292
-Wimplicit-fallthrough
9393
-Wunused
9494
-Wvla
95+
-Wno-extra-semi
9596
-Wno-int-in-bool-context
9697
-Wno-sign-compare
9798
-Wno-unknown-pragmas

simulate/cmake/SimulateOptions.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang
9292
-Wimplicit-fallthrough
9393
-Wunused
9494
-Wvla
95+
-Wno-extra-semi
9596
-Wno-int-in-bool-context
9697
-Wno-sign-compare
9798
-Wno-unknown-pragmas

src/engine/engine_collision_driver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static inline int contactcompare(const mjContact* c1, const mjContact* c2, void*
257257
}
258258

259259
// define contactSort function for sorting contacts
260-
mjSORT(contactSort, mjContact, contactcompare)
260+
mjSORT(contactSort, mjContact, contactcompare);
261261

262262

263263

@@ -1139,7 +1139,7 @@ static inline int uintcmp(int* i, int* j, void* context) {
11391139
}
11401140

11411141
// define bfsort function for sorting bodyflex pairs
1142-
mjSORT(bfsort, int, uintcmp)
1142+
mjSORT(bfsort, int, uintcmp);
11431143

11441144

11451145
// broadphase collision detector

0 commit comments

Comments
 (0)