Blame doxygen-1.9.1-Coverity_issues.patch

Than Ngo 195466
diff -up doxygen-1.9.1/src/context.cpp.me doxygen-1.9.1/src/context.cpp
Than Ngo 195466
--- doxygen-1.9.1/src/context.cpp.me	2021-02-10 10:56:44.575251899 +0100
Than Ngo 195466
+++ doxygen-1.9.1/src/context.cpp	2021-02-10 10:57:54.522809720 +0100
Than Ngo 195466
@@ -4062,11 +4062,11 @@ class MemberContext::Private : public De
Than Ngo 195466
         s_inst.addProperty("nameWithContextFor",  &Private::nameWithContextFor);
Than Ngo 195466
         init=TRUE;
Than Ngo 195466
       }
Than Ngo 195466
-      if (md && !md->cookie()) { md->setCookie(new MemberContext::Private::Cachable(md)); }
Than Ngo 195466
+      if (!md->cookie()) { md->setCookie(new MemberContext::Private::Cachable(md)); }
Than Ngo 195466
 
Than Ngo 195466
       Cachable &cache = getCache();
Than Ngo 195466
       cache.propertyAttrs.reset(TemplateList::alloc());
Than Ngo 195466
-      if (md && md->isProperty())
Than Ngo 195466
+      if (md->isProperty())
Than Ngo 195466
       {
Than Ngo 195466
         if (md->isGettable())           cache.propertyAttrs->append("get");
Than Ngo 195466
         if (md->isPrivateGettable())    cache.propertyAttrs->append("private get");
Than Ngo 195466
@@ -4076,7 +4076,7 @@ class MemberContext::Private : public De
Than Ngo 195466
         if (md->isProtectedSettable())  cache.propertyAttrs->append("protected set");
Than Ngo 195466
       }
Than Ngo 195466
       cache.eventAttrs.reset(TemplateList::alloc());
Than Ngo 195466
-      if (md && md->isEvent())
Than Ngo 195466
+      if (md->isEvent())
Than Ngo 195466
       {
Than Ngo 195466
         if (md->isAddable())   cache.eventAttrs->append("add");
Than Ngo 195466
         if (md->isRemovable()) cache.eventAttrs->append("remove");
Than Ngo 195466
diff -up doxygen-1.9.1/src/docparser.cpp.me doxygen-1.9.1/src/docparser.cpp
Than Ngo 195466
--- doxygen-1.9.1/src/docparser.cpp.me	2021-02-10 10:58:11.491500540 +0100
Than Ngo 195466
+++ doxygen-1.9.1/src/docparser.cpp	2021-02-10 11:00:35.905512597 +0100
Than Ngo 195466
@@ -1524,7 +1524,7 @@ reparsetoken:
Than Ngo 195466
           {
Than Ngo 195466
             QCString scope;
Than Ngo 195466
             doctokenizerYYsetStateSetScope();
Than Ngo 195466
-            doctokenizerYYlex();
Than Ngo 195466
+            (void)doctokenizerYYlex();
Than Ngo 195466
             scope = g_token->name;
Than Ngo 195466
             g_context = scope;
Than Ngo 195466
             //printf("Found scope='%s'\n",scope.data());
Than Ngo 195466
diff -up doxygen-1.9.1/src/dotgroupcollaboration.cpp.me doxygen-1.9.1/src/dotgroupcollaboration.cpp
Than Ngo 195466
--- doxygen-1.9.1/src/dotgroupcollaboration.cpp.me	2021-02-10 11:01:10.588530954 +0100
Than Ngo 195466
+++ doxygen-1.9.1/src/dotgroupcollaboration.cpp	2021-02-10 11:02:54.216221350 +0100
Than Ngo 195466
@@ -309,6 +309,7 @@ void DotGroupCollaboration::Edge::write(
Than Ngo 195466
     {
Than Ngo 195466
       if (first) first=FALSE; else t << "\\n";
Than Ngo 195466
       t << DotNode::convertLabel(link->label);
Than Ngo 195466
+      count++;
Than Ngo 195466
     }
Than Ngo 195466
     if (count==maxLabels) t << "\\n...";
Than Ngo 195466
     t << "\"";