From 266c3a962fb4a8f5a3d2838e99b1156736ce638b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 30 Aug 2020 19:17:34 +0200 Subject: [PATCH] Disable -Winline as we can't ensure all functions are inlined It doesn't really make sense to enable this for C++ code, with a lot of implicitly inline functions. --- tests/allheaders.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/allheaders.cpp b/tests/allheaders.cpp index 5d2f434134..cb3a6e3b67 100644 --- a/tests/allheaders.cpp +++ b/tests/allheaders.cpp @@ -379,6 +379,10 @@ GCC_TURN_OFF(abi-tag) #endif // 4.8 + // This can be used to ask the compiler to explain why some function is not + // inlined, but it's perfectly normal for some functions not to be inlined. + GCC_TURN_OFF(inline) + // All those are about using perfectly normal C++ features that are // actually used in our code. GCC_TURN_OFF(aggregate-return)