mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 06:18:34 +00:00
Fix some unused function warnings.
Clang 3.4 is more aggressive on this.
This commit is contained in:
parent
1777056d6f
commit
8c9e1a5f5c
@ -238,6 +238,7 @@ static void aligned_free__(void *ptr)
|
||||
free(p[-1]);
|
||||
}
|
||||
|
||||
#if !(defined(__AVX__) && ENABLE_AVX) && !defined(__SSE__)
|
||||
static inline void process_sinc_C(rarch_sinc_resampler_t *resamp, float *out_buffer)
|
||||
{
|
||||
unsigned i;
|
||||
@ -270,6 +271,7 @@ static inline void process_sinc_C(rarch_sinc_resampler_t *resamp, float *out_buf
|
||||
out_buffer[0] = sum_l;
|
||||
out_buffer[1] = sum_r;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__AVX__) && ENABLE_AVX
|
||||
#define process_sinc_func process_sinc
|
||||
|
2
gfx/gl.c
2
gfx/gl.c
@ -1773,6 +1773,7 @@ static inline void gl_set_texture_fmts(void *data, bool rgb32)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef RARCH_CONSOLE
|
||||
static inline void gl_reinit_textures(void *data, const video_info_t *video)
|
||||
{
|
||||
gl_t *gl = (gl_t*)data;
|
||||
@ -1818,6 +1819,7 @@ static inline void gl_reinit_textures(void *data, const video_info_t *video)
|
||||
if (!gl_check_error())
|
||||
RARCH_ERR("GL error reported while reinitializing textures. This should not happen ...\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_OPENGLES) && defined(HAVE_FFMPEG)
|
||||
static void gl_init_pbo_readback(void *data)
|
||||
|
@ -26,11 +26,6 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static inline uint64_t build_argb64(uint16_t a, uint16_t r, uint16_t g, uint16_t b)
|
||||
{
|
||||
return ((uint64_t)a << 48) | ((uint64_t)r << 32) | ((uint64_t)g << 16) | ((uint64_t)b << 0);
|
||||
}
|
||||
|
||||
// ARGB8888 scaler is split in two:
|
||||
//
|
||||
// First, horizontal scaler is applied.
|
||||
@ -196,6 +191,11 @@ void scaler_argb8888_horiz(const struct scaler_ctx *ctx, const void *input_, int
|
||||
}
|
||||
}
|
||||
#else
|
||||
static inline uint64_t build_argb64(uint16_t a, uint16_t r, uint16_t g, uint16_t b)
|
||||
{
|
||||
return ((uint64_t)a << 48) | ((uint64_t)r << 32) | ((uint64_t)g << 16) | ((uint64_t)b << 0);
|
||||
}
|
||||
|
||||
void scaler_argb8888_horiz(const struct scaler_ctx *ctx, const void *input_, int stride)
|
||||
{
|
||||
int h, w, x;
|
||||
|
10
hash.c
10
hash.c
@ -28,21 +28,11 @@
|
||||
(((uint32_t)(x) & 0xff000000) >> 24) \
|
||||
))
|
||||
|
||||
static inline void store32le(uint32_t *addr, uint32_t data)
|
||||
{
|
||||
*addr = is_little_endian() ? data : SWAP32(data);
|
||||
}
|
||||
|
||||
static inline void store32be(uint32_t *addr, uint32_t data)
|
||||
{
|
||||
*addr = is_little_endian() ? SWAP32(data) : data;
|
||||
}
|
||||
|
||||
static inline uint32_t load32le(const uint32_t *addr)
|
||||
{
|
||||
return is_little_endian() ? *addr : SWAP32(*addr);
|
||||
}
|
||||
|
||||
static inline uint32_t load32be(const uint32_t *addr)
|
||||
{
|
||||
return is_little_endian() ? SWAP32(*addr) : *addr;
|
||||
|
Loading…
Reference in New Issue
Block a user