Skip to content

Commit

Permalink
Suppressing -Wunused-parameter on gcc (just like we do on clang). (#1053
Browse files Browse the repository at this point in the history
)

This fixes various warnings when compiling with -Wextra
  • Loading branch information
crocdialer authored Apr 13, 2024
1 parent c416db3 commit 1781415
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Jolt/Core/Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@
JPH_GCC_SUPPRESS_WARNING("-Winvalid-offsetof") \
JPH_GCC_SUPPRESS_WARNING("-Wclass-memaccess") \
JPH_GCC_SUPPRESS_WARNING("-Wpedantic") \
JPH_GCC_SUPPRESS_WARNING("-Wunused-parameter") \
\
JPH_MSVC_SUPPRESS_WARNING(4619) /* #pragma warning: there is no warning number 'XXXX' */ \
JPH_MSVC_SUPPRESS_WARNING(4514) /* 'X' : unreferenced inline function has been removed */ \
Expand Down

0 comments on commit 1781415

Please sign in to comment.