Unused variable spotted by clang #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Analysis | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/**' | |
- 'include/**' | |
- 'Makefile' | |
- '*.mk' | |
- '.github/workflows/analyze.yml' | |
pull_request: | |
paths: | |
- 'src/**' | |
- 'include/**' | |
- 'Makefile' | |
- '*.mk' | |
- '.github/workflows/analyze.yml' | |
jobs: | |
cppcheck: | |
name: Check source code | |
runs-on: ubuntu-latest | |
env: | |
CC: gcc | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install dependencies | |
run: sudo apt-get install -y cppcheck | |
- name: Run cppcheck | |
run: make analyze |