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
|
|
@ -22,13 +22,14 @@
|
|||
*/
|
||||
int function()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* A test of a very very very very very very very very very very very very very very very very
|
||||
* very very very very very long comment string.
|
||||
*/
|
||||
int function2()
|
||||
void function2()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -36,7 +37,7 @@ int function2()
|
|||
* A test for overloaded functions
|
||||
* This is function \b one
|
||||
*/
|
||||
int function3(int a)
|
||||
void function3(int a)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ int function3(int a)
|
|||
* A test for overloaded functions
|
||||
* This is function \b two
|
||||
*/
|
||||
int function3(int a, int b)
|
||||
void function3(int a, int b)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -64,12 +65,12 @@ int function3(int a, int b)
|
|||
* \endcode
|
||||
* \endif
|
||||
*/
|
||||
int function4()
|
||||
void function4()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
int function5(int a)
|
||||
void function5(int a)
|
||||
{
|
||||
}
|
||||
/**< This is a post comment. */
|
||||
|
|
@ -78,7 +79,7 @@ int function5(int a)
|
|||
* Test for default args
|
||||
* @param a Some parameter, default is 42
|
||||
*/
|
||||
int function6(int a=42)
|
||||
void function6(int a=42)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue