summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/commentscan.l1
-rw-r--r--src/docgroup.cpp7
2 files changed, 5 insertions, 3 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index b283a8b..5e9bfd7 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -3228,7 +3228,6 @@ bool parseCommentBlock(/* in */ ParserInterface *parser,
return parseMore;
}
-
static void handleGuard(const QCString &expr)
{
CondParser prs;
diff --git a/src/docgroup.cpp b/src/docgroup.cpp
index 2ed7473..cfe19e8 100644
--- a/src/docgroup.cpp
+++ b/src/docgroup.cpp
@@ -121,11 +121,14 @@ void DocGroup::open(Entry *e,const char *,int)
void DocGroup::close(Entry *e,const char *fileName,int line,bool foundInline)
{
- m_openCount--;
- if (m_openCount < 0)
+ if (m_openCount < 1)
{
warn(fileName,line,"unbalanced grouping commands");
}
+ else
+ {
+ m_openCount--;
+ }
//printf("==> closeGroup(name=%s,sec=%x,file=%s,line=%d) m_autoGroupStack=%d\n",
// e->name.data(),e->section,fileName,line,m_autoGroupStack.count());
if (m_memberGroupId!=DOX_NOGROUP) // end of member group