This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PTA with lots of SFTs


On 11/27/07, Mark Mitchell <mark@codesourcery.com> wrote:
> Then, let's just turn off -Werror in that case.  People who don't care
> about run-time assertions probably don't want compile-time errors
> either.  Damn the torpedoes, full speed ahead!

How above even better doing in system.h:
#pragma GCC diagnostic warning (-Wunitialized)

if assert checking is off?

Something like:

Index: system.h
===================================================================
--- system.h    (revision 130458)
+++ system.h    (working copy)
@@ -797,6 +797,9 @@ extern void fancy_abort (const char *, i
 /* Activate -Wcast-qual as a warning (not an error/-Werror).  */
 #if GCC_VERSION >= 4003
 #pragma GCC diagnostic warning "-Wcast-qual"
+#ifndef ASSERT_CHECKING
+#pragma GCC diagnostic warning (-Wunitialized)
+#endif
 #endif

 #endif /* ! GCC_SYSTEM_H */

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]