foxygit / doom Log in
commit 4540c36d2abd34e621d2bf8764ff6b2ad68a72c7
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Wed Oct 19 11:26:21 2022 +0300
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Thu Oct 20 11:25:23 2022 +0300

    Add __GNUC__ to cppcheck preprocessor macros
---
 .travis.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.travis.sh b/.travis.sh
index e5718212..683d9bea 100755
--- a/.travis.sh
+++ b/.travis.sh
@@ -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