Skip to content

Commit

Permalink
ALAC: Fix warnings from AppleClang
Browse files Browse the repository at this point in the history
  • Loading branch information
erikd committed Jul 3, 2016
1 parent ac0c02d commit 7774043
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/ALAC/ag_dec.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "aglib.h"
#include "ALACBitUtilities.h"
#include "ALACAudioTypes.h"
#include "shift.h"

#define CODE_TO_LONG_MAXBITS 32
#define N_MAX_MEAN_CLAMP 0xffff
Expand Down
10 changes: 0 additions & 10 deletions src/ALAC/ag_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,6 @@ static inline int32_t ALWAYS_INLINE abs_func (int32_t a)
return result ;
}

static inline uint32_t ALWAYS_INLINE read32bit (uint8_t * buffer)
{
// embedded CPUs typically can't read unaligned 32-bit words so just read the bytes
uint32_t value ;

value = ((uint32_t) buffer [0] << 24) | ((uint32_t) buffer [1] << 16) |
((uint32_t) buffer [2] << 8) | (uint32_t) buffer [3] ;
return value ;
}

#if PRAGMA_MARK
#pragma mark -
#endif
Expand Down
6 changes: 0 additions & 6 deletions src/ALAC/alac_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@ static const uint32_t sChannelMaps [kALACMaxChannels] =
(ID_SCE << 21) | (ID_CPE << 15) | (ID_CPE << 9) | (ID_CPE << 3) | (ID_SCE)
} ;

static const uint32_t sSupportediPodSampleRates [] =
{
8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000
} ;


#if PRAGMA_MARK
#pragma mark -
#endif
Expand Down

0 comments on commit 7774043

Please sign in to comment.