mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-19 01:33:52 +08:00
* enable cppcheck 2.14 * cppcheck: Uninitialized variable * cppcheck: variableScope * cppcheck: misra-c2012-21.16 both arguments to memcmp() should be of compatible (matching) essential types * cppcheck: misra-c2012-11.6 Avoid casting between pointer to void and an arithmetic type. Refactor bootloader address casting for easier understanding. * cppecheck 2.14.1 - force cppecheck tag fetch
19 lines
370 B
Bash
Executable File
19 lines
370 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
: "${CPPCHECK_DIR:=$DIR/cppcheck/}"
|
|
|
|
if [ ! -d "$CPPCHECK_DIR" ]; then
|
|
git clone https://github.com/danmar/cppcheck.git $CPPCHECK_DIR
|
|
fi
|
|
|
|
cd $CPPCHECK_DIR
|
|
|
|
VERS="2.14.1"
|
|
git fetch --all --tags --force
|
|
git checkout $VERS
|
|
|
|
#make clean
|
|
make MATCHCOMPILTER=yes CXXFLAGS="-O2" -j8
|