c++ warning fixes

This commit is contained in:
Matthias Ringwald 2016-02-18 11:31:33 +01:00
parent 33a05ac652
commit c03cf9db38
4 changed files with 4 additions and 5 deletions

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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;