mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-26 11:37:10 +00:00
add -Wunused-parameter warning and fix warnings
This commit is contained in:
parent
026180f8e2
commit
966a8e4699
@ -28,7 +28,7 @@ COMMON += \
|
||||
sdp_util.c \
|
||||
sdp_server.c \
|
||||
|
||||
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror
|
||||
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wunused-variable -Wunused-parameter -Werror
|
||||
CFLAGS += -I.
|
||||
CFLAGS += -I${BTSTACK_ROOT}/src
|
||||
CFLAGS += -I${BTSTACK_ROOT}/src/classic
|
||||
|
@ -181,6 +181,7 @@ static int patestCallback( const void *inputBuffer, void *outputBuffer,
|
||||
(void) timeInfo; /* Prevent unused variable warnings. */
|
||||
(void) statusFlags;
|
||||
(void) inputBuffer;
|
||||
(void) userData;
|
||||
|
||||
int bytes_to_copy = framesPerBuffer * BYTES_PER_FRAME;
|
||||
|
||||
|
@ -98,6 +98,8 @@ int avdtp_read_signaling_header(avdtp_signaling_packet_t * signaling_header, uin
|
||||
}
|
||||
|
||||
int avdtp_pack_service_capabilities(uint8_t * buffer, int size, avdtp_capabilities_t caps, avdtp_service_category_t category, uint8_t pack_all_capabilities){
|
||||
UNUSED(size);
|
||||
|
||||
int i;
|
||||
// pos = 0 reserved for length
|
||||
int pos = 1;
|
||||
|
@ -70,6 +70,7 @@ static int total_num_samples = 0;
|
||||
static char * wav_filename = "portaudio_sine.wav";
|
||||
|
||||
static void write_wav_data(int16_t * data, int num_frames, int num_channels, int sample_rate){
|
||||
(void)sample_rate;
|
||||
wav_writer_write_int16(num_frames*num_channels, data);
|
||||
total_num_samples+=num_frames*num_channels;
|
||||
if (total_num_samples>5*SAMPLE_RATE) wav_writer_close();
|
||||
@ -105,7 +106,8 @@ static int patestCallback( const void *inputBuffer, void *outputBuffer,
|
||||
(void) timeInfo; /* Prevent unused variable warnings. */
|
||||
(void) statusFlags;
|
||||
(void) inputBuffer;
|
||||
|
||||
(void) userData;
|
||||
|
||||
uint32_t bytes_read = 0;
|
||||
int bytes_per_buffer = framesPerBuffer * BYTES_PER_FRAME;
|
||||
|
||||
@ -120,6 +122,9 @@ static int patestCallback( const void *inputBuffer, void *outputBuffer,
|
||||
|
||||
|
||||
int main(int argc, const char * argv[]){
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
PaError err;
|
||||
static paTestData data;
|
||||
static PaStream * stream;
|
||||
|
Loading…
x
Reference in New Issue
Block a user