Fix runtime library compiler warnings and errors in GCC.
This commit is contained in:
parent
0be620602a
commit
1b25eae747
1 changed files with 2 additions and 2 deletions
|
|
@ -28,12 +28,12 @@
|
|||
typedef intmax_t ssize_t;
|
||||
#endif
|
||||
|
||||
// Macro UNUSED silences compiler warnings about unused parameters.
|
||||
// Macro UNUSED(x) silences compiler warnings about unused parameter or variable `x`.
|
||||
#ifndef UNUSED
|
||||
#define UNUSED(x) (void)(x)
|
||||
#endif
|
||||
|
||||
// Cross-platform macro ALIGNED_(x) aligns a struct by x bits.
|
||||
// Cross-platform macro ALIGNED_(x) aligns a struct by `x` bits.
|
||||
#ifdef _MSC_VER
|
||||
#define ALIGNED_(x) __declspec(align(x))
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue