diff options
author | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-04 00:46:02 +0000 |
---|---|---|
committer | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-04 00:46:02 +0000 |
commit | b24655ef32d2caa4129f97dff97e12d308230f2c (patch) | |
tree | a091dc320d6614250cc2109b18a78f2c0ae5b007 /gcc/c.opt | |
parent | 06f9fe3e3f40c0c2eaae10f693374b35e2362fc0 (diff) | |
download | gcc-b24655ef32d2caa4129f97dff97e12d308230f2c.tar.gz |
2007-05-04 Dirk Mueller <dmueller@suse.de>
* c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
* cp-tree.h (DECL_MAIN_P): only if -ffreestanding is
not in effect.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124404 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c.opt b/gcc/c.opt index 61aaf82fef4..0635fdca13c 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -271,7 +271,7 @@ C ObjC C++ ObjC++ Var(warn_long_long) Init(1) Warning Do not warn about using \"long long\" when -pedantic Wmain -C ObjC Warning +C ObjC C++ ObjC++ Warning Warn about suspicious declarations of \"main\" Wmissing-braces @@ -551,7 +551,7 @@ C++ ObjC++ Scope of for-init-statement variables is local to the loop ffreestanding -C ObjC +C ObjC C++ ObjC++ Do not assume that standard C libraries and \"main\" exist fgnu-keywords |