mdbx: refine internal warnings control.

This commit is contained in:
Leo Yuriev 2018-03-14 15:16:49 +03:00
parent 8c96b1e73b
commit 9bbc62f5a0

View File

@ -89,27 +89,28 @@
#endif /* __SANITIZE_THREAD__ */ #endif /* __SANITIZE_THREAD__ */
#if __has_warning("-Wconstant-logical-operand") #if __has_warning("-Wconstant-logical-operand")
#if defined(__clang__) # if defined(__clang__)
#pragma clang diagnostic ignored "-Wconstant-logical-operand" # pragma clang diagnostic ignored "-Wconstant-logical-operand"
#elif defined(__GNUC__) # elif defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wconstant-logical-operand" # pragma GCC diagnostic ignored "-Wconstant-logical-operand"
#else # else
#pragma warning disable "constant-logical-operand" # pragma warning disable "constant-logical-operand"
#endif # endif
#endif /* -Wconstant-logical-operand */ #endif /* -Wconstant-logical-operand */
#if __has_warning("-Walignment-reduction-ignored") || defined(__e2k__) || defined(__ICC) #if defined(__LCC__) && (__LCC__ <= 121)
#if defined(__LCC__) /* bug #2798 */
#pragma diag_suppress alignment_reduction_ignored # pragma diag_suppress alignment_reduction_ignored
#elif defined(__ICC) #elif defined(__ICC)
#pragma warning(disable: 3453 1366) # pragma warning(disable: 3453 1366)
#elif defined(__clang__) #elif __has_warning("-Walignment-reduction-ignored")
#pragma clang diagnostic ignored "-Walignment-reduction-ignored" # if defined(__clang__)
#elif defined(__GNUC__) # pragma clang diagnostic ignored "-Walignment-reduction-ignored"
#pragma GCC diagnostic ignored "-Walignment-reduction-ignored" # elif defined(__GNUC__)
#else # pragma GCC diagnostic ignored "-Walignment-reduction-ignored"
#pragma warning disable "alignment-reduction-ignored" # else
#endif # pragma warning disable "alignment-reduction-ignored"
# endif
#endif /* -Wno-constant-logical-operand */ #endif /* -Wno-constant-logical-operand */
#include "./osal.h" #include "./osal.h"