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]
Other format: [Raw text]

PATCH: Fix typo in comment


Matt Krai pointed out a typo in one of my recent paches.

Committed to mainline as obvious.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

2004-12-23  Mark Mitchell  <mark@codesourcery.com>

	* cvt.c (convert_to_void): Fix typo in comment.

Index: cvt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/cvt.c,v
retrieving revision 1.175
diff -c -5 -p -r1.175 cvt.c
*** cvt.c	22 Dec 2004 18:00:39 -0000	1.175
--- cvt.c	23 Dec 2004 16:30:42 -0000
*************** convert_to_void (tree expr, const char *
*** 923,933 ****
  	      
  	      e = expr;
  	      /* We might like to warn about (say) "(int) f()", as the
  		 cast has no effect, but the compiler itself will
  		 generate implicit conversions under some
! 		 circmstances.  (For example a block copy will be
  		 turned into a call to "__builtin_memcpy", with a
  		 conversion of the return value to an appropriate
  		 type.)  So, to avoid false positives, we strip
  		 conversions.  */
  	      STRIP_NOPS (e);
--- 923,933 ----
  	      
  	      e = expr;
  	      /* We might like to warn about (say) "(int) f()", as the
  		 cast has no effect, but the compiler itself will
  		 generate implicit conversions under some
! 		 circumstances.  (For example a block copy will be
  		 turned into a call to "__builtin_memcpy", with a
  		 conversion of the return value to an appropriate
  		 type.)  So, to avoid false positives, we strip
  		 conversions.  */
  	      STRIP_NOPS (e);


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