]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
More elimination of warnings with clang
authorSteve Underwood <steveu@coppice.org>
Wed, 30 Apr 2014 14:27:29 +0000 (22:27 +0800)
committerSteve Underwood <steveu@coppice.org>
Wed, 30 Apr 2014 14:27:29 +0000 (22:27 +0800)
libs/spandsp/src/t43.c
libs/spandsp/src/t4_tx.c

index a22b8cf50f948a3941b04b51415c611428bd88fa..13b19a146f1c7ba92cf4f81a54c7cc8dd9d8cab1 100644 (file)
@@ -110,6 +110,7 @@ static __inline__ uint32_t pack_32(const uint8_t *s)
 }
 /*- End of function --------------------------------------------------------*/
 
+#if 0
 static __inline__ int unpack_16(uint8_t *s, uint16_t value)
 {
     s[0] = (value >> 8) & 0xFF;
@@ -118,7 +119,6 @@ static __inline__ int unpack_16(uint8_t *s, uint16_t value)
 }
 /*- End of function --------------------------------------------------------*/
 
-#if 0
 static __inline__ int unpack_32(uint8_t *s, uint32_t value)
 {
     s[0] = (value >> 24) & 0xFF;
index ccad8db9d832e5502ac9db7c5c47a83fba13122b..43138e5073f193142f1a52a111ca57f0d590196a 100644 (file)
@@ -300,6 +300,7 @@ static int match_resolution(float actual, const float table[])
 }
 /*- End of function --------------------------------------------------------*/
 
+#if 0
 static int best_colour_resolution(float actual, int allowed_resolutions)
 {
     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;
 }
 /*- End of function --------------------------------------------------------*/
+#endif
 
 #if defined(SPANDSP_SUPPORT_TIFF_FX)
 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 --------------------------------------------------------*/
 
+#if defined(SPANDSP_SUPPORT_T43)
 static int read_tiff_t43_image(t4_tx_state_t *s)
 {
     int biggest;
@@ -1026,6 +1029,7 @@ static int read_tiff_t43_image(t4_tx_state_t *s)
     return s->tiff.image_size;
 }
 /*- End of function --------------------------------------------------------*/
+#endif
 
 static int read_tiff_t42_t81_image(t4_tx_state_t *s)
 {