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]

Another 64-bit cleanup in tradcpp.c


This patch fixes this message on alphaev6-unknown-linux-gnu:

../../gcc/tradcpp.c: In function `do_error':
../../gcc/tradcpp.c:3188: warning: field precision is not type int (arg 2)

	* tradcpp.c (do_error): Cast difference of pointers to int
	for error message.

===================================================================
RCS file: RCS/tradcpp.c,v
retrieving revision 1.2
diff -p -r1.2 tradcpp.c
*** tradcpp.c	2000/12/12 22:40:16	1.2
--- tradcpp.c	2000/12/12 22:40:37
*************** do_error (buf, limit, op)
*** 3185,3191 ****
       U_CHAR *limit;
       FILE_BUF *op ATTRIBUTE_UNUSED;
  {
!   error ("#error%.*s", limit - buf, buf);
  }
  
  /* Handle a #assert directive.  */
--- 3185,3191 ----
       U_CHAR *limit;
       FILE_BUF *op ATTRIBUTE_UNUSED;
  {
!   error ("#error%.*s", (int) (limit - buf), buf);
  }
  
  /* Handle a #assert directive.  */



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