mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
38b13ce6f1
- Multiple minor patches to clean up the code and avoid compiler warnings (in order to prevent possible errors with future versions of GCC or other modern compilers) Remark: graphics/urt is also included in the cad/brlcad distribution, and has been factured out for the ports collection. The submitter merged some cleanups for IRIX by Lee Butler in order to prevent the mess of two diverging urt versions in the ports tree (the one bundled with cad/brlcad and graphics/urt). He also contributed serveral improvments himself. PR: ports/78687 Submitted by: Pedro F. Giffuni <giffunip@yahoo.com> Approved by: arved
21 lines
527 B
C
21 lines
527 B
C
--- tools/mcut.c.orig Thu Mar 10 20:54:44 2005
|
|
+++ tools/mcut.c Thu Mar 10 20:56:44 2005
|
|
@@ -791,7 +791,7 @@
|
|
TRACE( tmp_cb, cb_list )
|
|
{
|
|
register color_t *newcol = &tmp_cb->color;
|
|
- register newdist = DISTANCE( ref_col, *newcol );
|
|
+ register int newdist = DISTANCE( ref_col, *newcol );
|
|
|
|
if ( newdist < dist )
|
|
{
|
|
@@ -963,7 +963,7 @@
|
|
cmp_radices ( h1, h2 )
|
|
histogram_t **h1, **h2;
|
|
{
|
|
- register c1 = -1, c2 = -1;
|
|
+ register int c1 = -1, c2 = -1;
|
|
|
|
if ( *h1 )
|
|
c1 = (*h1)->color & mask;
|