2022-03-02 05:32:33 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ $# -eq 0 ]; then
|
|
|
|
EXTRA=""
|
|
|
|
else
|
2022-03-02 06:13:00 +01:00
|
|
|
EXTRA="--enable=all --suppress=constStatement --suppress=duplicateCondition --suppress=redundantAssignment --suppress=variableScope --suppress=unusedVariable --suppress=unreadVariable --suppress=shadowVariable"
|
2022-03-02 05:32:33 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
INCLUDES="-Iinclude -Isrc -I. -Ilib/lua/include"
|
|
|
|
DEFINES="-DRAPI_GL=1 -DWAPI_SDL2=1 -DAAPI_SDL2=1 -DCAPI_SDL2=1 -DHAVE_SDL2=1 -DVERSION_US -D_LANGUAGE_C -DNIGHTLY -DNON_MATCHING -DAVOID_UB -DF3DEX_GBI_2E -DCOOP -DIMMEDIATELOAD -DBETTERCAMERA -DNODRAWINGDISTANCE -DDISCORD_SDK -DTEXTURE_FIX -DEXT_OPTIONS_MENU"
|
|
|
|
PARAMS="--language=c --quiet --platform=unix64 -v src -j8"
|
|
|
|
|
|
|
|
cppcheck -DLLONG_MAX $INCLUDES $DEFINES $EXTRA $PARAMS
|