Skip to content

Commit

Permalink
Fix compiler warning in BLE and treat warnings as errors in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjaeger committed Nov 27, 2023
1 parent 4b2982c commit e3bf98b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
- name: Run sample build tests
working-directory: thingset-zephyr-sdk
run: |
west build -p -b olimex_lora_stm32wl_devkit samples/counter -- -DOVERLAY_CONFIG=lorawan.conf
west build -p -b esp32c3_devkitm samples/counter -- -DOVERLAY_CONFIG=ble.conf
west build -p -b esp32c3_devkitm samples/counter -- -DOVERLAY_CONFIG=wifi_websocket.conf
west build -p -b native_posix samples/counter
west build -p -b nucleo_l073rz samples/counter -- -DOVERLAY_CONFIG=serial.conf
west build -p -b nucleo_l073rz samples/counter -- -DOVERLAY_CONFIG=storage_eeprom.conf
west build -p -b native_posix samples/counter -- -DOVERLAY_CONFIG=auth.conf
west build -p -b native_posix samples/counter -- -DOVERLAY_CONFIG=can.conf
west build -p -b native_posix samples/counter -- -DOVERLAY_CONFIG=log_backend.conf
west build -p -b native_posix samples/counter -- -DOVERLAY_CONFIG=native_websocket.conf
west build -p -b xiao_esp32c3 samples/serial_ble_gateway
west build -p -b olimex_lora_stm32wl_devkit samples/counter -- -DOVERLAY_CONFIG=lorawan.conf -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b esp32c3_devkitm samples/counter -- -DOVERLAY_CONFIG=ble.conf -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b esp32c3_devkitm samples/counter -- -DOVERLAY_CONFIG=wifi_websocket.conf -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b native_posix samples/counter -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b nucleo_l073rz samples/counter -- -DOVERLAY_CONFIG=serial.conf -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b nucleo_l073rz samples/counter -- -DOVERLAY_CONFIG=storage_eeprom.conf -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b native_posix samples/counter -- -DOVERLAY_CONFIG=auth.conf -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b native_posix samples/counter -- -DOVERLAY_CONFIG=can.conf -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b native_posix samples/counter -- -DOVERLAY_CONFIG=log_backend.conf -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b native_posix samples/counter -- -DOVERLAY_CONFIG=native_websocket.conf -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
west build -p -b xiao_esp32c3 samples/serial_ble_gateway -- -DCONFIG_COMPILER_WARNINGS_AS_ERRORS=y
- name: Run unit tests
working-directory: thingset-zephyr-sdk
Expand Down
2 changes: 1 addition & 1 deletion src/ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ volatile bool notify_resp;

static char rx_buf[CONFIG_THINGSET_BLE_RX_BUF_SIZE];

static volatile size_t rx_buf_pos = 0;
static size_t rx_buf_pos = 0;
static bool discard_buffer;

/* binary semaphore used as mutex in ISR context */
Expand Down

0 comments on commit e3bf98b

Please sign in to comment.