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;
|
typedef intmax_t ssize_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Macro UNUSED silences compiler warnings about unused parameters.
|
// Macro UNUSED(x) silences compiler warnings about unused parameter or variable `x`.
|
||||||
#ifndef UNUSED
|
#ifndef UNUSED
|
||||||
#define UNUSED(x) (void)(x)
|
#define UNUSED(x) (void)(x)
|
||||||
#endif
|
#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
|
#ifdef _MSC_VER
|
||||||
#define ALIGNED_(x) __declspec(align(x))
|
#define ALIGNED_(x) __declspec(align(x))
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue