diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef0254f789..f8f2bdd8da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: path: downloads key: ${{ runner.os }}-downloads-${{ hashFiles('CMakeLists.txt') }}-${{ hashFiles('**/cmake/*')}} - name: Build targets (${{ matrix.id }}) - run: mkdir -p build && cd build && cmake -DCI_JOB_INDEX=${{ matrix.id }} -DCI_JOB_COUNT=${{ strategy.job-total }} -DBUILD_SUFFIX=${{ env.BUILD_SUFFIX }} -G Ninja .. && ninja ci + run: mkdir -p build && cd build && cmake -DWARNINGS_AS_ERRORS=ON -DCI_JOB_INDEX=${{ matrix.id }} -DCI_JOB_COUNT=${{ strategy.job-total }} -DBUILD_SUFFIX=${{ env.BUILD_SUFFIX }} -G Ninja .. && ninja ci - name: Upload artifacts uses: actions/upload-artifact@v2-preview with: diff --git a/src/main/drivers/pwm_output.c b/src/main/drivers/pwm_output.c index 6472741a78..5f61be7495 100644 --- a/src/main/drivers/pwm_output.c +++ b/src/main/drivers/pwm_output.c @@ -578,7 +578,7 @@ void beeperPwmInit(ioTag_t tag, uint16_t frequency) // Attempt to allocate TCH TCH_t * tch = timerGetTCH(timHw); if (tch == NULL) { - return NULL; + return; } beeperPwm = &beeperPwmPort; diff --git a/src/main/msc/usbd_storage_sd_spi.c b/src/main/msc/usbd_storage_sd_spi.c index fc61cd6cef..03f53eed72 100644 --- a/src/main/msc/usbd_storage_sd_spi.c +++ b/src/main/msc/usbd_storage_sd_spi.c @@ -213,8 +213,8 @@ static int8_t STORAGE_Read (uint8_t lun, UNUSED(lun); LED1_ON; for (int i = 0; i < blk_len; i++) { - while (sdcard_readBlock(blk_addr + i, buf + (512 * i), NULL, NULL) == 0); - while (sdcard_poll() == 0); + while (sdcard_readBlock(blk_addr + i, buf + (512 * i), NULL, 0) == 0); + while (sdcard_poll() == 0); } LED1_OFF; return 0;