This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: slight textual change in gcc/cp/friend.c


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;
  		}
  	    }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]