From 7f797ecf127f06826a3cf0380a76fc43d0bf0737 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Fri, 9 Sep 2022 14:39:03 +0200 Subject: [PATCH] wip --- src/util/glibc_workaround.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/glibc_workaround.cpp b/src/util/glibc_workaround.cpp index ed185016f..b62991433 100644 --- a/src/util/glibc_workaround.cpp +++ b/src/util/glibc_workaround.cpp @@ -7,6 +7,8 @@ // This is needed because libstdc++ itself uses this API - its not // just an issue of your code using it, ughhh +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Werror" // Note: only necessary on Linux #ifdef __linux__ #define _ENABLE_GLIBC_WORKAROUND @@ -14,6 +16,7 @@ #else #warning not building with workaround #endif +#pragma GCC diagnostic pop #ifdef _ENABLE_GLIBC_WORKAROUND namespace std