Merge pull request #3657 from firewave/missinclude

enabled and fixed `missingInclude` Cppcheck warnings
This commit is contained in:
matt335672
2025-11-06 11:20:17 +00:00
committed by GitHub
4 changed files with 24 additions and 5 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ struct sockaddr_hvs
#endif
#include "os_calls.h"
#include "limits.h"
#include <limits.h>
#include "string_calls.h"
#include "log.h"
#include "xrdp_constants.h"
+1 -1
View File
@@ -22,7 +22,7 @@
#endif
#include "libxrdp.h"
#include "freerdp/codec/rfx.h"
#include <freerdp/codec/rfx.h>
/*****************************************************************************/
struct xrdp_surface *
+21 -2
View File
@@ -84,7 +84,10 @@ fi
# Supply default flags passed to cppcheck if necessary
if [ -z "$CPPCHECK_FLAGS" ]; then
CPPCHECK_FLAGS="--quiet --force --std=c11 --std=c++11 --inline-suppr \
--enable=warning --error-exitcode=1 -i third_party \
--enable=warning,missingInclude --error-exitcode=1 \
-i third_party \
-i vrplayer \
--suppress=missingIncludeSystem \
--suppress=uninitMemberVar:ulalaca/ulalaca.cpp \
--suppress=dangerousTypeCast:ulalaca/XrdpStream.template.cpp \
--suppress=shiftTooManyBits:libxrdp/xrdp_mppc_enc.c"
@@ -103,7 +106,23 @@ if [ -z "$CPPCHECK_FLAGS" ]; then
check_level="Default (option not supported)"
fi
CPPCHECK_FLAGS="$CPPCHECK_FLAGS -I . -I common"
CPPCHECK_FLAGS="$CPPCHECK_FLAGS \
-I . \
-I common \
-I libipm \
-I libpainter/include \
-I librfxcodec/include \
-I librfxcodec/src \
-I librfxcodec/src/neon \
-I librfxcodec/src/sse2 \
-I libxrdp \
-I sesman/libsesman \
-I sesman/sesexec \
-I third_party \
-I third_party/tomlc99 \
-I xrdp \
-I xrdpapi \
-I xrdpvr"
fi
CPPCHECK_FLAGS="$CPPCHECK_FLAGS -D__cppcheck__"
+1 -1
View File
@@ -3,7 +3,7 @@
#include "config_ac.h"
#endif
#include "limits.h"
#include <limits.h>
#include "os_calls.h"
#include "timers.h"