From da1294295760ce04ce261cbdd3ee889be45373f7 Mon Sep 17 00:00:00 2001 From: Niclas Olmenius Date: Thu, 3 Oct 2019 12:50:23 +0200 Subject: [PATCH] stb_image_write: fix clang warning fix -Wmissing-variable-declarations clang warning `stbi__flip_vertically_on_write` is now static like `stbi__vertically_flip_on_load` in `stb_image.h` --- stb_image_write.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stb_image_write.h b/stb_image_write.h index a9bf66c..3316feb 100644 --- a/stb_image_write.h +++ b/stb_image_write.h @@ -247,17 +247,17 @@ STBIWDEF void stbi_flip_vertically_on_write(int flip_boolean); #define STBIW_UCHAR(x) (unsigned char) ((x) & 0xff) #ifdef STB_IMAGE_WRITE_STATIC -static int stbi__flip_vertically_on_write=0; static int stbi_write_png_compression_level = 8; static int stbi_write_tga_with_rle = 1; static int stbi_write_force_png_filter = -1; #else int stbi_write_png_compression_level = 8; -int stbi__flip_vertically_on_write=0; int stbi_write_tga_with_rle = 1; int stbi_write_force_png_filter = -1; #endif +static int stbi__flip_vertically_on_write = 0; + STBIWDEF void stbi_flip_vertically_on_write(int flag) { stbi__flip_vertically_on_write = flag;