From 56e3f54ca01ad037f6d84e382c1b769c406eaf33 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Thu, 3 Sep 1998 16:09:59 +0000 Subject: [PATCH] cp-tree.h: Declare warn_nontemplate_friend. S 1998-09-03 Benjamin Kosnik * cp-tree.h: Declare warn_nontemplate_friend. * decl2.c (lang_decode_option): Set. * lang-options.h: Add -Wnon-template-friend. * friend.c (do_friend): Use to toggle non-template function warning. g++/17054 From-SVN: r22219 --- gcc/cp/lang-options.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/cp/lang-options.h b/gcc/cp/lang-options.h index e6ad6595b10..32f5ff90509 100644 --- a/gcc/cp/lang-options.h +++ b/gcc/cp/lang-options.h @@ -106,8 +106,8 @@ DEFINE_LANG_NAME ("C++") { "-Wno-return-type", "" }, { "-Woverloaded-virtual", "Warn about overloaded virtual function names" }, { "-Wno-overloaded-virtual", "" }, - { "-Wctor-dtor-privacy", "Warn when all ctors/dtors are private" }, - { "-Wno-ctor-dtor-privacy", "" }, + { "-Wctor-dtor-privacy", "" }, + { "-Wno-ctor-dtor-privacy", "Don't warn when all ctors/dtors are private" }, { "-Wnon-virtual-dtor", "Warn about non virtual destructors" }, { "-Wno-non-virtual-dtor", "" }, { "-Wextern-inline", "Warn when a function is declared extern, then inline" }, @@ -116,11 +116,14 @@ DEFINE_LANG_NAME ("C++") { "-Wno-reorder", "" }, { "-Wsynth", "Warn when synthesis behaviour differs from Cfront" }, { "-Wno-synth", "" }, - { "-Wpmf-conversions", "Warn when type converting pointers to member functions" }, - { "-Wno-pmf-conversions", "" }, + { "-Wpmf-conversions", "" }, + { "-Wno-pmf-conversions", "Don't warn when type converting pointers to member functions" }, { "-Weffc++", "Warn about violations of Effective C++ style rules" }, { "-Wno-effc++", "" }, { "-Wsign-promo", "Warn when overload promotes from unsigned to signed" }, { "-Wno-sign-promo", "" }, { "-Wold-style-cast", "Warn if a C style cast is used in a program" }, { "-Wno-old-style-cast", "" }, + { "-Wnon-template-friend", "" }, + { "-Wno-non-template-friend", "Don't warn when non-templatized friend functions are declared within a template" }, + -- 2.30.2