mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-06 03:40:16 +00:00
don't use empty initializer [-Wgnu-empty-initializer]
This commit is contained in:
parent
dbb3997aee
commit
c30af2ff06
@ -51,7 +51,7 @@
|
||||
#include "btstack.h"
|
||||
|
||||
static btstack_packet_callback_registration_t hci_event_callback_registration;
|
||||
static bd_addr_t cmdline_addr = { };
|
||||
static bd_addr_t cmdline_addr;
|
||||
static btstack_timer_source_t warm_boot_timer;
|
||||
static int cmdline_addr_found;
|
||||
static const char * prog_name;
|
||||
|
@ -77,7 +77,7 @@ static advertising_report_t report;
|
||||
|
||||
static void handle_gatt_client_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
|
||||
|
||||
static bd_addr_t cmdline_addr = { };
|
||||
static bd_addr_t cmdline_addr;
|
||||
static int cmdline_addr_found = 0;
|
||||
|
||||
static hci_con_handle_t connection_handle;
|
||||
|
@ -71,7 +71,7 @@ typedef struct advertising_report {
|
||||
const uint8_t * data;
|
||||
} advertising_report_t;
|
||||
|
||||
static bd_addr_t cmdline_addr = { };
|
||||
static bd_addr_t cmdline_addr;
|
||||
static int cmdline_addr_found = 0;
|
||||
|
||||
static hci_con_handle_t connection_handler;
|
||||
|
@ -72,7 +72,7 @@ static const char * sensor_contact_string[] = {
|
||||
"good contact"
|
||||
};
|
||||
|
||||
static bd_addr_t cmdline_addr = { };
|
||||
static bd_addr_t cmdline_addr;
|
||||
static int cmdline_addr_found = 0;
|
||||
|
||||
// addr and type of device with correct name
|
||||
|
@ -69,7 +69,7 @@ static enum {
|
||||
|
||||
const uint16_t TSPX_le_psm = 0x25;
|
||||
|
||||
static bd_addr_t cmdline_addr = { };
|
||||
static bd_addr_t cmdline_addr;
|
||||
static int cmdline_addr_found = 0;
|
||||
|
||||
// addr and type of device with correct name
|
||||
|
@ -69,7 +69,7 @@ typedef enum {
|
||||
TC_W4_TEST_DATA
|
||||
} gc_state_t;
|
||||
|
||||
static bd_addr_t cmdline_addr = { };
|
||||
static bd_addr_t cmdline_addr;
|
||||
static int cmdline_addr_found = 0;
|
||||
|
||||
// addr and type of device with correct name
|
||||
|
@ -7,7 +7,7 @@ COMMON += hci_transport_h2_libusb.c btstack_run_loop_posix.c le_device_db_fs.c
|
||||
|
||||
include ${BTSTACK_ROOT}/example/Makefile.inc
|
||||
|
||||
CFLAGS += -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror -Wunused-parameter -Wredundant-decls -Wsign-compare
|
||||
CFLAGS += -g -Wall -Wgnu-empty-initializer -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Werror -Wunused-parameter -Wredundant-decls -Wsign-compare
|
||||
# CFLAGS += -Werror
|
||||
|
||||
CFLAGS += -I${BTSTACK_ROOT}/platform/posix \
|
||||
|
Loading…
x
Reference in New Issue
Block a user