From 79e2d7cad82df2c1f7526de026a971f7386ccbe5 Mon Sep 17 00:00:00 2001 From: Andrew Corrigan Date: Fri, 14 Feb 2014 15:38:18 -0500 Subject: [PATCH 1/2] stdio.h --- src/nanovg_gl2.h | 1 + src/nanovg_gl3.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/nanovg_gl2.h b/src/nanovg_gl2.h index 0db4e21..43cc19b 100644 --- a/src/nanovg_gl2.h +++ b/src/nanovg_gl2.h @@ -55,6 +55,7 @@ void nvgDeleteGL2(struct NVGcontext* ctx); #ifdef NANOVG_GL2_IMPLEMENTATION #include +#include #include #include "nanovg.h" diff --git a/src/nanovg_gl3.h b/src/nanovg_gl3.h index 4a83d55..7f9466d 100644 --- a/src/nanovg_gl3.h +++ b/src/nanovg_gl3.h @@ -54,6 +54,7 @@ void nvgDeleteGL3(struct NVGcontext* ctx); #ifdef NANOVG_GL3_IMPLEMENTATION #include +#include #include #include "nanovg.h" From 74dddb693eda0d07a0f1fff726d360835e44e492 Mon Sep 17 00:00:00 2001 From: Andrew Corrigan Date: Sat, 15 Feb 2014 10:59:05 -0500 Subject: [PATCH 2/2] suppresses "explicitly assigning a variable to itself warning" and potential unused parameter warnings --- src/stb_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stb_image.c b/src/stb_image.c index 098b91a..4a3a3c0 100644 --- a/src/stb_image.c +++ b/src/stb_image.c @@ -1733,7 +1733,7 @@ static uint8 *resample_row_generic(uint8 *out, uint8 *in_near, uint8 *in_far, in { // 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];