shithub: choc

Download patch

ref: 4540c36d2abd34e621d2bf8764ff6b2ad68a72c7
parent: 9f9fa99eb12d7a7df97b20b13d2200a4946e6ba3
author: Turo Lamminen <turol@iki.fi>
date: Wed Oct 19 07:26:21 EDT 2022

Add __GNUC__ to cppcheck preprocessor macros

--- 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