Fix runtime library compiler warnings and errors in GCC.

This commit is contained in:
Alex Helfet 2017-03-22 17:44:17 +00:00
parent 0be620602a
commit 1b25eae747

View file

@ -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