diff options
author | Jason Merrill <jason@redhat.com> | 2010-06-16 11:45:36 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-06-16 11:45:36 -0400 |
commit | 59f9c2ed530507a5dcaaf4c6d3789b908dc3dfa6 (patch) | |
tree | d0cfe8570eb95b543a4e2033811af7af2bda6204 /gcc/c-family/c.opt | |
parent | 7c69566f11b2361bcfac2c53e385a271792d09f2 (diff) | |
download | gcc-59f9c2ed530507a5dcaaf4c6d3789b908dc3dfa6.zip gcc-59f9c2ed530507a5dcaaf4c6d3789b908dc3dfa6.tar.gz gcc-59f9c2ed530507a5dcaaf4c6d3789b908dc3dfa6.tar.bz2 |
c.opt: Add -Wnoexcept.
* c.opt: Add -Wnoexcept.
* except.c (check_noexcept_r): Return the problematic function.
(finish_noexcept_expr): Give -Wnoexcept warning. Add complain parm.
* pt.c (tsubst_copy_and_build): Pass it.
* parser.c (cp_parser_unary_expression): Likewise.
* cp-tree.h: Adjust prototype.
From-SVN: r160842
Diffstat (limited to 'gcc/c-family/c.opt')
-rw-r--r-- | gcc/c-family/c.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 5122e1a..0517d35 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -341,6 +341,10 @@ Wnested-externs C ObjC Var(warn_nested_externs) Warning Warn about \"extern\" declarations not at file scope +Wnoexcept +C++ ObjC++ Var(warn_noexcept) Warning +Warn when a noexcept expression evaluates to true even though the expression can't actually throw + Wnon-template-friend C++ ObjC++ Var(warn_nontemplate_friend) Init(1) Warning Warn when non-templatized friend functions are declared within a template |