Skip to content

Commit

Permalink
corec: add a MSVC variant for UNUSED_PARAM()
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Jan 2, 2025
1 parent 003dc8d commit 521fb7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions corec/corec/portab.h
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ typedef uint16_t utf16_t;

#if defined(COMPILER_GCC)
#define UNUSED_PARAM(x) (x) __attribute__ ((unused))
#elif defined(_MSC_VER)
#define UNUSED_PARAM(x) (x) __pragma(warning(suppress:4100 4131)) (x)
#else
#define UNUSED_PARAM(x) (x)
#endif
Expand Down

0 comments on commit 521fb7e

Please sign in to comment.