summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-08-22 03:31:54 +0000
committerkan <kan@FreeBSD.org>2003-08-22 03:31:54 +0000
commit5f7c06e920cfed0bb10fca211ee6c0b8ba33b3e0 (patch)
treea51af46c19ebeaea0f3ae6fd8164a7aa92d83833
parent49a4324488979060b7c816c30be02c99441ab5b0 (diff)
downloadFreeBSD-src-5f7c06e920cfed0bb10fca211ee6c0b8ba33b3e0.zip
FreeBSD-src-5f7c06e920cfed0bb10fca211ee6c0b8ba33b3e0.tar.gz
Enable warn_system_heders by default.
-rw-r--r--contrib/gcc/cppinit.c1
-rw-r--r--contrib/gcc/toplev.c2
2 files changed, 2 insertions, 1 deletions
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. */
OpenPOWER on IntegriCloud