From a29b848f1bcc4cbfc38399a59b5e8885622fc396 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sat, 9 Jan 2021 13:12:11 +0100 Subject: [PATCH] fixing cppcheck issues --- .github/workflows/build_check.yml | 2 +- platformio.ini | 2 +- src/configuration.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index a65a723..c6643da 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -16,7 +16,7 @@ jobs: - run: pip3 install platformio - run: echo "$HOME/.local/bin" >> $GITHUB_PATH - uses: actions/checkout@v2 - - run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high --skip-packages --flags "--suppress=*:*.pio\* --inline-suppr" -v + - run: platformio check --fail-on-defect low --fail-on-defect medium --fail-on-defect high --skip-packages PlatformIO-Build: runs-on: ubuntu-latest diff --git a/platformio.ini b/platformio.ini index d03274d..1307a57 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,7 +16,7 @@ lib_deps = peterus/LoRa-APRS-Lib @ 0.0.5 check_tool = cppcheck check_flags = - cppcheck: --suppress=*:*.pio\* --inline-suppr + cppcheck: --suppress=*:*.pio\* --inline-suppr -DCPPCHECK --force monitor_flags = --raw # activate for OTA Update, use the CALLSIGN from is-cfg.h as upload_port: #upload_protocol = espota diff --git a/src/configuration.h b/src/configuration.h index 8e7e101..f0ecdd7 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -4,7 +4,9 @@ #include #include +#ifndef CPPCHECK #include +#endif class Configuration {