Skip to content
Myr

stb_image: fix three unused function warnings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Dobe Peter · committed by Dobe Peter · parent e6afb9c · Browse files · 1 file+9 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−1 removed

  • other:+9 added−1 removed

1 file+9 added−1 removed

modified:stb_image.h+9 added-1 removed
647 unmodified lines
648#endif649650#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name651652#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2)653static int stbi__sse2_available(void)654{655 int info3 = stbi__cpuid3();656 return ((info3 >> 26) & 1) != 0;657}658#endif659660#else // assume GCC-style if not VC++661#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))662663#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2)664static int stbi__sse2_available(void)665{666 // If we're even attempting to compile this on GCC/Clang, that means667 // -msse2 is on, which means the compiler is allowed to use SSE2668 // instructions at will, and so are we.669 return 1;670}671#endif672673#endif674#endif675676// ARM NEON677#if defined(STBI_NO_SIMD) && defined(STBI_NEON)678#undef STBI_NEON
396 unmodified lines
1075 }1076 }1077}10781079#ifndef STBI_NO_GIF1080static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)1081{1082 int slice;1083 int slice_size = w * h * bytes_per_pixel;
3 unmodified lines
1087 stbi__vertical_flip(bytes, w, h, bytes_per_pixel); 1088 bytes += slice_size; 1089 }1090}1091#endif10921093static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)1094{1095 stbi__result_info ri;
42 unmodified lines
11381139 return (stbi__uint16 *) result;1140}11411134#if !defined(STBI_NO_HDR) || !defined(STBI_NO_LINEAR)1142#if !defined(STBI_NO_HDR) && !defined(STBI_NO_LINEAR)1143static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)1144{1145 if (stbi__vertically_flip_on_load && result != NULL) {1146 int channels = req_comp ? req_comp : *comp;
6324 unmodified lines