From cf4617ee1dc5b25b3e063863e886ac79a78d475c Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 7 Aug 2019 15:12:34 +0200 Subject: issue #7147: No warning when same page created Creating warning when adding documentation to an already existing page. --- src/util.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v0.12