summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-08-08 09:12:04 (GMT)
committerGitHub <noreply@github.com>2019-08-08 09:12:04 (GMT)
commit970436b1acbfdc8a3b727eb1fd08992d8a5687f9 (patch)
tree8f6e6c77cfab52e60ea9b7817978eb8f91b88091
parent1d9b047b60c7f01fac9405a784fb10a9fbc86538 (diff)
parentcf4617ee1dc5b25b3e063863e886ac79a78d475c (diff)
downloadDoxygen-970436b1acbfdc8a3b727eb1fd08992d8a5687f9.zip
Doxygen-970436b1acbfdc8a3b727eb1fd08992d8a5687f9.tar.gz
Doxygen-970436b1acbfdc8a3b727eb1fd08992d8a5687f9.tar.bz2
Merge pull request #7169 from albert-github/feature/issue_7147
issue #7147: No warning when same page created
-rw-r--r--src/util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 5808815..f5e43a4 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -6754,6 +6754,8 @@ PageDef *addRelatedPage(const char *name,const QCString &ptitle,
//printf("addRelatedPage(name=%s gd=%p)\n",name,gd);
if ((pd=Doxygen::pageSDict->find(name)) && !tagInfo)
{
+ warn(fileName,startLine,"multiple use of page label '%s', (other occurrence: %s, line: %d)",
+ name,pd->docFile().data(),pd->docLine());
// append documentation block to the page.
pd->setDocumentation(doc,fileName,startLine);
//printf("Adding page docs '%s' pi=%p name=%s\n",doc.data(),pd,name);