From b5e40323921566ce8a15aa7808d22d36acac4edd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 29 Mar 2021 15:54:40 -0700 Subject: [PATCH] -Wno-unused-result GCC doesn't let one turn off the warning using "(void) foo()". People have introduced macros that do "unused << foo()" instead. Until we do something similar, silence gcc. Clang on the other hand understands "(void) foo()". --- src/hb.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb.hh b/src/hb.hh index 18516581c..3dc6ef472 100644 --- a/src/hb.hh +++ b/src/hb.hh @@ -117,6 +117,7 @@ #pragma GCC diagnostic ignored "-Wshadow" // TODO fix #pragma GCC diagnostic ignored "-Wunsafe-loop-optimizations" // TODO fix #pragma GCC diagnostic ignored "-Wunused-parameter" // TODO fix +#pragma GCC diagnostic ignored "-Wunused-result" // TODO fix #endif /* Ignored intentionally. */