Cleanup: Avoid some warnings on OS X with clang and update comment.

This commit is contained in:
Thomas Dinges
2015-10-25 20:48:28 +01:00
parent 72592cfbe0
commit aa49c16bd9
3 changed files with 6 additions and 4 deletions

View File

@@ -22,7 +22,7 @@
/* Release kernel has too much false-positive maybe-uninitialized warnings,
* which makes it possible to miss actual warnings.
*/
#if defined(__GNUC__) && defined(NDEBUG)
#if (defined(__GNUC__) && !defined(__clang__)) && defined(NDEBUG)
# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
# pragma GCC diagnostic ignored "-Wuninitialized"
#endif