enabled and fixed unassignedVariable Cppcheck warnings
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user