From 76ce039e605be1a9be17d3bf4f6513f0ecea63c6 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 13 Dec 2007 11:19:17 -0800 Subject: re PR bootstrap/34144 (Revision 130005 causes bootstrap failure with --disable-checking) 2007-12-13 Andrew Pinski David Daney PR bootstrap/34144 * system.h: Make -Wuninitialized non-fatal if ASSERT_CHECKING is disabled. Co-Authored-By: David Daney From-SVN: r130908 --- gcc/system.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/system.h') diff --git a/gcc/system.h b/gcc/system.h index 65f27379ad1..92b045c1a5e 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 */ -- cgit v1.2.1