From d93a13294a5d886e77382d710daee5f6d51de2c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Thu, 27 Jan 2022 16:31:13 +0300 Subject: [PATCH] mdbx: explicit disable `-Wattributes` by `#pragma` for GCC < 9. --- src/internals.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/internals.h b/src/internals.h index 631f5268..e07a31b3 100644 --- a/src/internals.h +++ b/src/internals.h @@ -113,6 +113,10 @@ disable : 4505) /* unreferenced local function has been removed */ #endif /* _MSC_VER (warnings) */ +#if defined(__GNUC__) && __GNUC__ < 9 +#pragma GCC diagnostic ignored "-Wattributes" +#endif /* GCC < 9 */ + #include "../mdbx.h" #include "defs.h"