-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:
parent
c30349d54e
commit
b5e4032392
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue