From 38b13ce6f1222ca993754283d737f5bba4a2507d Mon Sep 17 00:00:00 2001 From: Simon Barner Date: Sun, 13 Mar 2005 17:09:55 +0000 Subject: - Prepare to build cad/brlcad with framebuffer support - 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 Approved by: arved --- graphics/urt/files/patch-cnv::rletorla.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 graphics/urt/files/patch-cnv::rletorla.c (limited to 'graphics/urt/files/patch-cnv::rletorla.c') diff --git a/graphics/urt/files/patch-cnv::rletorla.c b/graphics/urt/files/patch-cnv::rletorla.c new file mode 100644 index 000000000000..9c52b427891e --- /dev/null +++ b/graphics/urt/files/patch-cnv::rletorla.c @@ -0,0 +1,20 @@ +--- cnv/rletorla.c.orig Thu Mar 10 23:41:56 2005 ++++ cnv/rletorla.c Thu Mar 10 23:39:39 2005 +@@ -312,7 +312,7 @@ + U_CHAR *buf; + int *offset; + int width, height; +- int scan, x, y; ++ int scan, x; + short len; + long offptr; + /* +@@ -348,7 +348,7 @@ + exit(-1); + } + for (scan = 0; scan < height; scan++) { +- y = rle_getrow(&rle_dflt_hdr, scanline); ++ (void)rle_getrow(&rle_dflt_hdr, scanline); + switch (visual) { + case GRAYSCALE: /* 8 bits without colormap */ + red = scanline[0]; -- cgit v1.2.3