enabled and fixed unassignedVariable Cppcheck warnings

This commit is contained in:
firewave
2026-02-18 00:01:22 +01:00
parent 077dbbcba9
commit 2fb807391a
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ if [ -z "$CPPCHECK_FLAGS" ]; then
--enable=warning,missingInclude,style --disable=portability --disable=performance --error-exitcode=1 \
-i third_party \
-i vrplayer \
--suppress=constParameterCallback --suppress=variableScope --suppress=constParameterPointer --suppress=constVariablePointer --suppress=duplicateCondition --suppress=redundantAssignment --suppress=knownConditionTrueFalse --suppress=unreadVariable --suppress=constParameter --suppress=constVariable --suppress=shadowFunction --suppress=unusedStructMember --suppress=duplicateExpression --suppress=unsignedLessThanZero --suppress=shadowVariable --suppress=unreachableCode --suppress=noExplicitConstructor --suppress=constParameterReference --suppress=functionStatic --suppress=shadowArgument --suppress=truncLongCastAssignment --suppress=cstyleCast --suppress=constVariableReference --suppress=unassignedVariable --suppress=badBitmaskCheck \
--suppress=constParameterCallback --suppress=variableScope --suppress=constParameterPointer --suppress=constVariablePointer --suppress=duplicateCondition --suppress=redundantAssignment --suppress=knownConditionTrueFalse --suppress=unreadVariable --suppress=constParameter --suppress=constVariable --suppress=shadowFunction --suppress=unusedStructMember --suppress=duplicateExpression --suppress=unsignedLessThanZero --suppress=shadowVariable --suppress=unreachableCode --suppress=noExplicitConstructor --suppress=constParameterReference --suppress=functionStatic --suppress=shadowArgument --suppress=truncLongCastAssignment --suppress=cstyleCast --suppress=constVariableReference --suppress=badBitmaskCheck \
--suppress=missingIncludeSystem \
--suppress=uninitMemberVar:ulalaca/ulalaca.cpp \
--suppress=dangerousTypeCast:ulalaca/XrdpStream.template.cpp \
+2 -1
View File
@@ -375,9 +375,10 @@ xrdp_encoder_create(struct xrdp_mm *mm)
void
xrdp_encoder_delete(struct xrdp_encoder *self)
{
#if defined(XRDP_RFXCODEC) || defined(XRDP_X264) || defined(XRDP_OPENH264)
int index;
#endif
(void)index;
LOG_DEVEL(LOG_LEVEL_INFO, "xrdp_encoder_delete:");
if (self == 0)