changeset 521:8b3080325eff

Use (void) foo instead of foo = foo to silence the compiler warning about unused argument, better this way.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 19 Nov 2012 17:34:50 +0200
parents 54974f4f2ad6
children 2a70f5902b70
files stb_image.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stb_image.c	Mon Nov 19 17:34:16 2012 +0200
+++ b/stb_image.c	Mon Nov 19 17:34:50 2012 +0200
@@ -1746,7 +1746,7 @@
 {
    // resample with nearest-neighbor
    int i,j;
-   in_far = in_far;
+   (void) in_far;
    for (i=0; i < w; ++i)
       for (j=0; j < hs; ++j)
          out[i*hs+j] = in_near[i];