mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-13 03:19:58 +03:00
[CMAKE] Consider warnings as errors during CI
This commit is contained in:
parent
9ac514c107
commit
fe24e611af
3 changed files with 4 additions and 4 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -34,7 +34,7 @@ jobs:
|
||||||
path: downloads
|
path: downloads
|
||||||
key: ${{ runner.os }}-downloads-${{ hashFiles('CMakeLists.txt') }}-${{ hashFiles('**/cmake/*')}}
|
key: ${{ runner.os }}-downloads-${{ hashFiles('CMakeLists.txt') }}-${{ hashFiles('**/cmake/*')}}
|
||||||
- name: Build targets (${{ matrix.id }})
|
- 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
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v2-preview
|
uses: actions/upload-artifact@v2-preview
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -578,7 +578,7 @@ void beeperPwmInit(ioTag_t tag, uint16_t frequency)
|
||||||
// Attempt to allocate TCH
|
// Attempt to allocate TCH
|
||||||
TCH_t * tch = timerGetTCH(timHw);
|
TCH_t * tch = timerGetTCH(timHw);
|
||||||
if (tch == NULL) {
|
if (tch == NULL) {
|
||||||
return NULL;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
beeperPwm = &beeperPwmPort;
|
beeperPwm = &beeperPwmPort;
|
||||||
|
|
|
@ -213,8 +213,8 @@ static int8_t STORAGE_Read (uint8_t lun,
|
||||||
UNUSED(lun);
|
UNUSED(lun);
|
||||||
LED1_ON;
|
LED1_ON;
|
||||||
for (int i = 0; i < blk_len; i++) {
|
for (int i = 0; i < blk_len; i++) {
|
||||||
while (sdcard_readBlock(blk_addr + i, buf + (512 * i), NULL, NULL) == 0);
|
while (sdcard_readBlock(blk_addr + i, buf + (512 * i), NULL, 0) == 0);
|
||||||
while (sdcard_poll() == 0);
|
while (sdcard_poll() == 0);
|
||||||
}
|
}
|
||||||
LED1_OFF;
|
LED1_OFF;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue