Fix missing returns in the Doxygen test suite code.
Missing returns resulted in test suite failures now that it is built with -Wreturn-type, so avoid them by simply making most of the functions void and adding explicit return statements to a couple of them that used Doxygen \return command in their documentation, which doesn't make sense for the void functions.
This commit is contained in:
parent
45ecc9cb84
commit
2e5017c6ef
6 changed files with 32 additions and 29 deletions
|
|
@ -123,6 +123,7 @@
|
|||
*/
|
||||
int function(int a, float b)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -205,7 +206,7 @@ int function(int a, float b)
|
|||
* <u>underlined \b bold text - doxy commands are ignored inside 'htmlonly' section </u>
|
||||
* \endhtmlonly
|
||||
*/
|
||||
int htmlFunction(int a, float b)
|
||||
void htmlFunction(int a, float b)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -222,7 +223,7 @@ int htmlFunction(int a, float b)
|
|||
* Almost all combinations of above flags are supported by
|
||||
* \c htmlTable... functions.
|
||||
*/
|
||||
int htmlTableFunction(int byFlags)
|
||||
void htmlTableFunction(int byFlags)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -252,7 +253,7 @@ int htmlTableFunction(int byFlags)
|
|||
* Not an &text; html entity - ignored by Doxygen.
|
||||
* Not an &text html entity - ampersand is replaced with entity.
|
||||
*/
|
||||
int htmlEntitiesFunction(int a, float b)
|
||||
void htmlEntitiesFunction(int a, float b)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue