diff options
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index 65f2737..92b045c 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -797,6 +797,11 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; /* Activate -Wcast-qual as a warning (not an error/-Werror). */ #if GCC_VERSION >= 4003 #pragma GCC diagnostic warning "-Wcast-qual" +/* If asserts are disabled, activate -Wuninitialized as a warning (not + an error/-Werror). */ +#ifndef ASSERT_CHECKING +#pragma GCC diagnostic warning "-Wuninitialized" +#endif #endif #endif /* ! GCC_SYSTEM_H */ |