1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-01-23 07:28:26 +01:00
slackware-current/source/d/doxygen/patches/doxygen-1.9.1-Coverity_issues.patch
Patrick J Volkerding 0a66130671 Fri Mar 12 23:01:08 UTC 2021
a/acl-2.3.0-x86_64-1.txz:  Upgraded.
a/attr-2.5.0-x86_64-1.txz:  Upgraded.
ap/hplip-3.20.5-x86_64-3.txz:  Rebuilt.
  Switched to hplip-3.20.5 to fix regressions in the hp-plugin subsystem.
  Patched to use is_alive() rather than the deprecated isAlive().
  Thanks to Andypoo.
  Newer versions than 3.20.6 require avahi. We'll stick with this version
  for now and leave the decision about whether we love HP more than we hate
  avahi for another day.
d/doxygen-1.9.1-x86_64-1.txz:  Upgraded.
xap/mozilla-firefox-78.8.0esr-x86_64-2.txz:  Rebuilt.
  Rebuilt with --enable-system-nss and --enable-system-nspr. Thanks to franzen.
xap/mozilla-thunderbird-78.8.1-x86_64-2.txz:  Rebuilt.
  Rebuilt with --enable-system-nss, --enable-system-nspr, and
  --disable-debug-symbols. Thanks to franzen.
xap/seamonkey-2.53.6-x86_64-3.txz:  Rebuilt.
  Rebuilt with --enable-system-nss and --enable-system-nspr. Thanks to franzen.
xfce/exo-4.16.1-x86_64-1.txz:  Upgraded.
2021-03-13 08:59:53 +01:00

49 lines
2.3 KiB
Diff

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