From owner-freebsd-ports@FreeBSD.ORG Fri Jan 13 18:34:54 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C61316A41F for ; Fri, 13 Jan 2006 18:34:54 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id B227A43D45 for ; Fri, 13 Jan 2006 18:34:53 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id k0DIYqb03655; Fri, 13 Jan 2006 10:34:52 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id SAA21164; Fri, 13 Jan 2006 18:25:46 GMT Message-Id: <200601131825.SAA21164@sopwith.solgatos.com> To: freebsd-ports@freebsd.org, bug-bison@gnu.org Date: Fri, 13 Jan 2006 10:25:46 +0000 From: Dieter Cc: Subject: portability fix for bison-1.75 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jan 2006 18:34:54 -0000 A fix for portability between ILP32 and LP64. FreeBSD 6.0 AMD64 tables.c: In function `table_grow': tables.c:211: warning: int format, different type arg (arg 3) tables.c:211: warning: int format, different type arg (arg 4) Fix: rcsdiff -r1.1 -u work/bison-1.75/src/tables.c =================================================================== RCS file: work/bison-1.75/src/RCS/tables.c,v retrieving revision 1.1 diff -u -r1.1 work/bison-1.75/src/tables.c --- work/bison-1.75/src/tables.c 2006/01/13 18:13:32 1.1 +++ work/bison-1.75/src/tables.c 2006/01/13 18:15:29 @@ -207,8 +207,8 @@ table_size *= 2; if (trace_flag & trace_resource) - fprintf (stderr, "growing table and check from: %d to %d\n", - old_size, table_size); + fprintf (stderr, "growing table and check from: %ld to %ld\n", + (long)old_size, (long)table_size); table = XREALLOC (table, base_t, table_size); check = XREALLOC (check, base_t, table_size);