-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()".
This commit is contained in:
Behdad Esfahbod 2021-03-29 15:54:40 -07:00
parent c30349d54e
commit b5e4032392
1 changed files with 1 additions and 0 deletions

View File

@ -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. */