1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-03-03 09:21:29 +00:00

More elimination of warnings with clang

This commit is contained in:
Steve Underwood 2014-04-30 22:27:29 +08:00
parent bfacd58fa7
commit b8bd000bdd
2 changed files with 5 additions and 1 deletions
libs/spandsp/src

@ -110,6 +110,7 @@ static __inline__ uint32_t pack_32(const uint8_t *s)
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
#if 0
static __inline__ int unpack_16(uint8_t *s, uint16_t value) static __inline__ int unpack_16(uint8_t *s, uint16_t value)
{ {
s[0] = (value >> 8) & 0xFF; s[0] = (value >> 8) & 0xFF;
@ -118,7 +119,6 @@ static __inline__ int unpack_16(uint8_t *s, uint16_t value)
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
#if 0
static __inline__ int unpack_32(uint8_t *s, uint32_t value) static __inline__ int unpack_32(uint8_t *s, uint32_t value)
{ {
s[0] = (value >> 24) & 0xFF; s[0] = (value >> 24) & 0xFF;

@ -300,6 +300,7 @@ static int match_resolution(float actual, const float table[])
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
#if 0
static int best_colour_resolution(float actual, int allowed_resolutions) static int best_colour_resolution(float actual, int allowed_resolutions)
{ {
static const struct static const struct
@ -343,6 +344,7 @@ static int best_colour_resolution(float actual, int allowed_resolutions)
return x_res_table[best_entry].resolution_code; return x_res_table[best_entry].resolution_code;
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
#endif
#if defined(SPANDSP_SUPPORT_TIFF_FX) #if defined(SPANDSP_SUPPORT_TIFF_FX)
static int read_colour_map(t4_tx_state_t *s, int bits_per_sample) static int read_colour_map(t4_tx_state_t *s, int bits_per_sample)
@ -949,6 +951,7 @@ static int read_tiff_t85_image(t4_tx_state_t *s)
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
#if defined(SPANDSP_SUPPORT_T43)
static int read_tiff_t43_image(t4_tx_state_t *s) static int read_tiff_t43_image(t4_tx_state_t *s)
{ {
int biggest; int biggest;
@ -1026,6 +1029,7 @@ static int read_tiff_t43_image(t4_tx_state_t *s)
return s->tiff.image_size; return s->tiff.image_size;
} }
/*- End of function --------------------------------------------------------*/ /*- End of function --------------------------------------------------------*/
#endif
static int read_tiff_t42_t81_image(t4_tx_state_t *s) static int read_tiff_t42_t81_image(t4_tx_state_t *s)
{ {