Add __GNUC__ to cppcheck preprocessor macros
This commit is contained in:
parent
9f9fa99eb1
commit
4540c36d2a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue