diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2003-05-11 12:47:42 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2003-05-11 12:47:42 +0000 |
commit | f333504d46da2f112b66a3957a7c8d0fd0c422f7 (patch) | |
tree | a6924f208de2f2c4ca7c84c3605e16b1d484b223 /gcc/c-common.c | |
parent | 9f01ded6a4ccb23faa18ce19091eb5ea0408b8d9 (diff) | |
download | gcc-f333504d46da2f112b66a3957a7c8d0fd0c422f7.zip gcc-f333504d46da2f112b66a3957a7c8d0fd0c422f7.tar.gz gcc-f333504d46da2f112b66a3957a7c8d0fd0c422f7.tar.bz2 |
re PR c++/689 ([diagnostic] this warning is not helpful: `class xxxx' only defines a private destructor and has no friend)
PR C++/689
PR C++/9257
* c-opts.c (c_common_decode_option): Don't set
warn_ctor_dtor_privacy wen -Wall.
* c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
From-SVN: r66684
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index aa34d53..c3fcf42 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -626,7 +626,7 @@ int warn_implicit = 1; /* Nonzero means warn when all ctors or dtors are private, and the class has no friends. */ -int warn_ctor_dtor_privacy = 1; +int warn_ctor_dtor_privacy = 0; /* Nonzero means warn in function declared in derived class has the same name as a virtual in the base class, but fails to match the |