summaryrefslogtreecommitdiff
path: root/Examples/test-suite/doxygen_translate.i
diff options
context:
space:
mode:
authorVadim Zeitlin <vz-swig@zeitlins.org>2015-02-17 18:32:56 +0100
committerVadim Zeitlin <vz-swig@zeitlins.org>2015-02-17 23:14:46 +0100
commit2e5017c6efa6ca746be32935a905c91b66ab8642 (patch)
tree5aa92e6b35684fa92d770acad3694786b20f9430 /Examples/test-suite/doxygen_translate.i
parent45ecc9cb84cf8d894c57832f893350cfdf7eb3f6 (diff)
downloadswig-2e5017c6efa6ca746be32935a905c91b66ab8642.tar.gz
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.
Diffstat (limited to 'Examples/test-suite/doxygen_translate.i')
-rw-r--r--Examples/test-suite/doxygen_translate.i7
1 files changed, 4 insertions, 3 deletions
diff --git a/Examples/test-suite/doxygen_translate.i b/Examples/test-suite/doxygen_translate.i
index 3c2930ff1..348b2e9a8 100644
--- a/Examples/test-suite/doxygen_translate.i
+++ b/Examples/test-suite/doxygen_translate.i
@@ -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)
{
}