mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-10 06:40:23 +00:00
c++ warning fixes
This commit is contained in:
parent
33a05ac652
commit
c03cf9db38
@ -263,7 +263,7 @@ void sdp_parser_handle_service_search(uint8_t * data, uint16_t total_count, uint
|
||||
sdp_query_service_record_handle_event_t service_record_handle_event = {
|
||||
SDP_QUERY_SERVICE_RECORD_HANDLE,
|
||||
total_count,
|
||||
record_counter,
|
||||
(uint16_t) record_counter,
|
||||
record_handle
|
||||
};
|
||||
(*sdp_query_callback)((sdp_query_event_t*)&service_record_handle_event);
|
||||
|
@ -4,7 +4,7 @@ CC = g++
|
||||
|
||||
BTSTACK_ROOT = ../..
|
||||
|
||||
CFLAGS = -DUNIT_TEST -x c++ -g -Wall -Wnarrowing -I. -I../ -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include
|
||||
CFLAGS = -DUNIT_TEST -x c++ -g -Wall -Wnarrowing -Wconversion-null -I. -I../ -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/ble -I${BTSTACK_ROOT}/include
|
||||
LDFLAGS += -lCppUTest -lCppUTestExt
|
||||
|
||||
VPATH += ${BTSTACK_ROOT}/ble
|
||||
|
@ -45,7 +45,7 @@ COMMON_OBJ = $(COMMON:.c=.o)
|
||||
MOCK_OBJ = $(MOCK:.c=.o)
|
||||
|
||||
# CC = gcc-fsf-4.9
|
||||
CFLAGS = -g -Wall -Wmissing-prototype -I. -I../ -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/include
|
||||
CFLAGS = -g -Wall -Wmissing-prototype -Wnarrowing -I. -I../ -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/include
|
||||
CFLAGS += -Werror
|
||||
|
||||
VPATH += ${BTSTACK_ROOT}/src
|
||||
|
@ -78,8 +78,7 @@ static hfp_connection_t context;
|
||||
|
||||
TEST_GROUP(HFPParser){
|
||||
char packet[200];
|
||||
int pos;
|
||||
int offset;
|
||||
uint16_t pos;
|
||||
|
||||
void setup(void){
|
||||
context.parser_state = HFP_PARSER_CMD_HEADER;
|
||||
|
Loading…
x
Reference in New Issue
Block a user