From 5f7c06e920cfed0bb10fca211ee6c0b8ba33b3e0 Mon Sep 17 00:00:00 2001 From: kan Date: Fri, 22 Aug 2003 03:31:54 +0000 Subject: Enable warn_system_heders by default. --- contrib/gcc/cppinit.c | 1 + contrib/gcc/toplev.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/gcc/cppinit.c b/contrib/gcc/cppinit.c index 3b0175f..d8b1dab 100644 --- a/contrib/gcc/cppinit.c +++ b/contrib/gcc/cppinit.c @@ -532,6 +532,7 @@ cpp_create_reader (lang) CPP_OPTION (pfile, operator_names) = 1; CPP_OPTION (pfile, warn_endif_labels) = 1; CPP_OPTION (pfile, warn_long_long) = !CPP_OPTION (pfile, c99); + CPP_OPTION (pfile, warn_system_headers) = 1; CPP_OPTION (pfile, pending) = (struct cpp_pending *) xcalloc (1, sizeof (struct cpp_pending)); diff --git a/contrib/gcc/toplev.c b/contrib/gcc/toplev.c index 62539bc..60a6bca 100644 --- a/contrib/gcc/toplev.c +++ b/contrib/gcc/toplev.c @@ -1410,7 +1410,7 @@ int inhibit_warnings = 0; /* Don't suppress warnings from system headers. -Wsystem-headers. */ -int warn_system_headers = 0; +int warn_system_headers = 1; /* Print various extra warnings. -W. */ -- cgit v1.1