Cycles: Ignore -Wmaybe-uninitialized from the kernel in release builds

This warning provided too much false-positive issues in release version of the
kernel, making it really easy to miss actual warnings.
This commit is contained in:
Sergey Sharybin
2015-02-02 21:13:41 +05:00
parent 23e3dbb726
commit ddba5c27a7
7 changed files with 13 additions and 6 deletions

View File

@@ -19,6 +19,13 @@
#define __KERNEL_CPU__
/* Release kernel has too much false-positive maybe-uninitialzied warnings,
* which makes it possible to miss actual warnings.
*/
#if defined(__GNUC__) && defined(NDEBUG)
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#include "util_debug.h"
#include "util_math.h"
#include "util_simd.h"