diff options
author | albert-github <albert.tests@gmail.com> | 2019-09-13 14:39:00 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-09-13 14:39:00 (GMT) |
commit | a445ecc48e8152848e78fa2f167a556f0cac5616 (patch) | |
tree | 2d9e085281e638b013142903012af75de546a453 /src/util.cpp | |
parent | 4fbb61f020a607a96152ba5c00668b9840ea812c (diff) | |
download | Doxygen-a445ecc48e8152848e78fa2f167a556f0cac5616.zip Doxygen-a445ecc48e8152848e78fa2f167a556f0cac5616.tar.gz Doxygen-a445ecc48e8152848e78fa2f167a556f0cac5616.tar.bz2 |
Warning with xrefitem from documentation
The example code with the `xrefitem` in the documentation gives a warning:
```
my_errors:1: warning: multiple use of page label 'my_errors', (other occurrence: .../aa.h, line: 4)
```
it is possible (and explicitly stated) to have an `\page` with the same name giving some extra information.
The warning regarding the multiple page is removed in case of a xrefitem page.
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 4dc7c71..27e6d07 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -6745,6 +6745,7 @@ PageDef *addRelatedPage(const char *name,const QCString &ptitle, const QList<ListItemInfo> *sli, GroupDef *gd, TagInfo *tagInfo, + bool xref, SrcLangExt lang ) { @@ -6752,7 +6753,7 @@ 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)", + if (!xref) 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); |