diff options
author | albert-github <albert.tests@gmail.com> | 2021-06-13 10:05:49 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-06-13 10:05:49 (GMT) |
commit | 3b031847e0e0488eeccab9a176b12a77434ad431 (patch) | |
tree | fead22c5c9f498758db5e8c05e73700657887832 | |
parent | 64c7301d7ffa1c6eef5a1f9a4a58268d2b735da4 (diff) | |
download | Doxygen-3b031847e0e0488eeccab9a176b12a77434ad431.zip Doxygen-3b031847e0e0488eeccab9a176b12a77434ad431.tar.gz Doxygen-3b031847e0e0488eeccab9a176b12a77434ad431.tar.bz2 |
Compilation warnings regarding reordering
For a number of files we get a warning (gcc 10.2.0 and 7.5.0 and on MacOS) similar to:
In file included from .../src/util.h:31,
from .../src/xmlgen.cpp:24:
.../src/docparser.h: In constructor ‘DocHRef::DocHRef(DocNode*, const HtmlAttribList&, const QCString&, const QCString&, const QCString&)’:
.../src/docparser.h:931:16: warning: ‘DocHRef::m_relPath’ will be initialized after [-Wreorder]
931 | QCString m_relPath;
| ^~~~~~~~~
.../src/docparser.h:930:16: warning: ‘QCString DocHRef::m_file’ [-Wreorder]
930 | QCString m_file;
| ^~~~~~
.../src/docparser.h:917:5: warning: when initialized here [-Wreorder]
917 | DocHRef(DocNode *parent,const HtmlAttribList &attribs,const QCString &url,
| ^~~~~~~
-rw-r--r-- | src/docparser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docparser.h b/src/docparser.h index e76dc16..f6b2d29 100644 --- a/src/docparser.h +++ b/src/docparser.h @@ -927,8 +927,8 @@ class DocHRef : public CompAccept<DocHRef> private: HtmlAttribList m_attribs; QCString m_url; - QCString m_file; QCString m_relPath; + QCString m_file; }; /** Node Html heading */ |