mcst-linux-kernel/patches-2024.06.26/libcmis-0.5.2/0001-Fix-Werror-shadow-glob...

25 lines
865 B
Diff

diff -Naur orig/src/libcmis/repository.cxx new/src/libcmis/repository.cxx
--- orig/src/libcmis/repository.cxx 2020-03-20 16:51:32.503110950 +0300
+++ new/src/libcmis/repository.cxx 2020-03-20 16:52:46.608114085 +0300
@@ -251,7 +251,7 @@
xmlFree( content );
Capability capability = ACL;
- bool ignore = false;
+ bool ignoreThis = false;
if ( localName == "capabilityACL" )
capability = ACL;
else if ( localName == "capabilityAllVersionsSearchable" )
@@ -283,9 +283,9 @@
else if ( localName == "capabilityJoin" )
capability = Join;
else
- ignore = true;
+ ignoreThis = true;
- if ( !ignore )
+ if ( !ignoreThis )
capabilities[capability] = value;
}