This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Another 64-bit cleanup in tradcpp.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Another 64-bit cleanup in tradcpp.c
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Tue, 12 Dec 2000 17:42:55 -0500 (EST)
- Cc: lucier at math dot purdue dot edu
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. */