Doxygen -:1:警告:成员 X 的返回类型未记录
/*! \var GLOBAL_VAR
* \brief This is my global initialisation array for MY_STRUCT
*/
MY_STRUCT GLOBAL_VAR = {
1,
3,
2,
1,
};
我收到以下错误:
<GLOBAL_VAR>:1: warning: return type of member GLOBAL_VAR is not documented
但这不应该有任何返回类型?!
如果我执行以下任一操作,警告就会消失:
/*! \var GLOBAL_VAR
* \brief This is my global initialisation array for MY_STRUCT
* \returns
*/
MY_STRUCT GLOBAL_VAR = {
1,
3,
2,
1,
};
或者:
/*! \var GLOBAL_VAR
* \brief This is my global initialisation array for MY_STRUCT
*/
MY_STRUCT GLOBAL_VAR = 3;
这不是很有用,因为它将“返回”放入我的 HTML 文档中,而第二个则破坏了我的代码!
如何删除此警告?
谢谢马特
/*! \var GLOBAL_VAR
* \brief This is my global initialisation array for MY_STRUCT
*/
MY_STRUCT GLOBAL_VAR = {
1,
3,
2,
1,
};
I get the following error:
<GLOBAL_VAR>:1: warning: return type of member GLOBAL_VAR is not documented
But this shouldn't have any return type?!
If I do either of the following the warning goes away:
/*! \var GLOBAL_VAR
* \brief This is my global initialisation array for MY_STRUCT
* \returns
*/
MY_STRUCT GLOBAL_VAR = {
1,
3,
2,
1,
};
Or:
/*! \var GLOBAL_VAR
* \brief This is my global initialisation array for MY_STRUCT
*/
MY_STRUCT GLOBAL_VAR = 3;
The isn't very useful as it puts a "Returns" into my HTML documentation and the second one breaks my code!
How do I remove this warning?
Thanks
Matt
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://old .nabble.com/%22warning:-return-type-not-documented%22-for-non-functions-td29022040.html
似乎是一个错误。希望将来能修复它。
http://old.nabble.com/%22warning:-return-type-not-documented%22-for-non-functions-td29022040.html
Seems a bug. Hopefully it'll be fixed in the future.