version 1.1, 2025/04/09 15:47:36
|
version 1.2, 2025/04/09 19:52:02
|
Line 25
|
Line 25
|
# along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
# along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
# |
# |
# $Log$ |
# $Log$ |
|
# Revision 1.2 2025/04/09 19:52:02 snw |
|
# Eliminate as many warnings as possible while building with -Wall |
|
# |
# Revision 1.1 2025/04/09 15:47:36 snw |
# Revision 1.1 2025/04/09 15:47:36 snw |
# Add fmd lint command |
# Add fmd lint command |
# |
# |
Line 63 fi
|
Line 66 fi
|
FMD=$1 |
FMD=$1 |
REPORTFILE="freem_lint_${_fmd_freem_version}.log" |
REPORTFILE="freem_lint_${_fmd_freem_version}.log" |
|
|
|
echo -n "${PGM}: linting src/*.[ch] to ${REPORTFILE} (this may take awhile)... " |
cppcheck --quiet --enable=all --inconclusive src/*.[ch] &> "${REPORTFILE}" |
cppcheck --quiet --enable=all --inconclusive src/*.[ch] &> "${REPORTFILE}" |
|
if [[ $? == 0 ]] |
|
then |
|
echo "[OK]" |
|
else |
|
echo "[FAIL]" |
|
fi |
|
|