Skip to content

Commit

Permalink
Try to fix VC unreferenced parameter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilliamson committed Jul 16, 2018
1 parent 4460dd7 commit 978ce09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Remotery.c
Expand Up @@ -140,7 +140,7 @@ static rmtBool g_SettingsInitialized = RMT_FALSE;
#endif

#ifdef _MSC_VER
#define RMT_UNREFERENCED_PARAMETER(i) assert(i == 0 || i != 0); // To fool warning C4100 on warning level 4
#define RMT_UNREFERENCED_PARAMETER(i) (i)
#else
#define RMT_UNREFERENCED_PARAMETER(i) (void)(1 ? (void)0 : ((void)i))
#endif
Expand Down

0 comments on commit 978ce09

Please sign in to comment.