This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: slight textual change in gcc/cp/friend.c
- To: egcs-patches at cygnus dot com
- Subject: PATCH: slight textual change in gcc/cp/friend.c
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Tue, 22 Sep 1998 21:02:50 +0200 (MET DST)
I guess line-length was the reason to omit ``the [warning]''?
Okay to install the following?
Gerald
Tue Sep 22 21:01:19 1998 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* friend.c (do_friend): Make warning a full sentence.
Index: friend.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/friend.c,v
retrieving revision 1.29
diff -c -3 -p -r1.29 friend.c
*** friend.c 1998/09/07 14:25:08 1.29
--- friend.c 1998/09/22 18:58:03
*************** do_friend (ctype, declarator, decl, parm
*** 459,465 ****
warning (" (if this is not what you intended, make sure");
warning (" the function template has already been declared,");
warning (" and add <> after the function name here)");
! warning (" To disable warning use -Wno-non-template-friend");
explained = 1;
}
}
--- 459,465 ----
warning (" (if this is not what you intended, make sure");
warning (" the function template has already been declared,");
warning (" and add <> after the function name here)");
! warning (" -Wno-non-template-friend disables this warning.");
explained = 1;
}
}