Add __GNUC__ to cppcheck preprocessor macros

This commit is contained in:
Turo Lamminen 2022-10-19 11:26:21 +03:00
parent 9f9fa99eb1
commit 4540c36d2a

View file

@ -1,6 +1,7 @@
#!/bin/sh
if [ "$ANALYZE" = "true" ] ; then
cppcheck --error-exitcode=1 -j2 -UTESTING -Iopl -Isrc -Isrc/setup opl pcsound src textscreen 2> stderr.txt
# -D__GNUC__ is required for cppcheck to know about noreturn functions
cppcheck --error-exitcode=1 -j2 -UTESTING -D__GNUC__ -Iopl -Isrc -Isrc/setup opl pcsound src textscreen 2> stderr.txt
RET=$?
if [ -s stderr.txt ]
then