summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-11-18 14:16:58 +0100
committerGünther Deschner <gd@samba.org>2014-11-28 14:24:07 +0100
commit8ce7904abd29b1bf01a7a040871bb31b844089d8 (patch)
treee652024300303c7f1be5c1806c82b02479365e96
parent574750777ad47d733a45a72e7da83297e3faa897 (diff)
downloadsamba-8ce7904abd29b1bf01a7a040871bb31b844089d8.tar.gz
ntdb: Fix control reaches end of non-void function.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
-rw-r--r--lib/ntdb/test/run-01-new_database.c6
-rw-r--r--lib/ntdb/test/run-02-expand.c6
-rw-r--r--lib/ntdb/test/run-05-readonly-open.c6
-rw-r--r--lib/ntdb/test/run-10-simple-store.c6
-rw-r--r--lib/ntdb/test/run-11-simple-fetch.c6
-rw-r--r--lib/ntdb/test/run-12-check.c6
-rw-r--r--lib/ntdb/test/run-35-convert.c6
-rw-r--r--lib/ntdb/test/run-capabilities.c6
8 files changed, 48 insertions, 0 deletions
diff --git a/lib/ntdb/test/run-01-new_database.c b/lib/ntdb/test/run-01-new_database.c
index fe142bdece3..ab69477b86f 100644
--- a/lib/ntdb/test/run-01-new_database.c
+++ b/lib/ntdb/test/run-01-new_database.c
@@ -31,4 +31,10 @@ int main(int argc, char *argv[])
break;
}
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-02-expand.c b/lib/ntdb/test/run-02-expand.c
index 635bf892065..e808989db45 100644
--- a/lib/ntdb/test/run-02-expand.c
+++ b/lib/ntdb/test/run-02-expand.c
@@ -59,4 +59,10 @@ int main(int argc, char *argv[])
ok1(tap_log_messages == 0);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-05-readonly-open.c b/lib/ntdb/test/run-05-readonly-open.c
index e0de0d96e3a..87caf9533fd 100644
--- a/lib/ntdb/test/run-05-readonly-open.c
+++ b/lib/ntdb/test/run-05-readonly-open.c
@@ -70,4 +70,10 @@ fail:
failtest_suppress = true;
ntdb_close(ntdb);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-10-simple-store.c b/lib/ntdb/test/run-10-simple-store.c
index 3e5959a647a..0add1f10fb5 100644
--- a/lib/ntdb/test/run-10-simple-store.c
+++ b/lib/ntdb/test/run-10-simple-store.c
@@ -56,4 +56,10 @@ fail:
failtest_suppress = true;
ntdb_close(ntdb);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-11-simple-fetch.c b/lib/ntdb/test/run-11-simple-fetch.c
index 9565ade930d..779a5ea14da 100644
--- a/lib/ntdb/test/run-11-simple-fetch.c
+++ b/lib/ntdb/test/run-11-simple-fetch.c
@@ -56,4 +56,10 @@ fail:
failtest_suppress = true;
ntdb_close(ntdb);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-12-check.c b/lib/ntdb/test/run-12-check.c
index 8abc86dff91..7211761f189 100644
--- a/lib/ntdb/test/run-12-check.c
+++ b/lib/ntdb/test/run-12-check.c
@@ -43,4 +43,10 @@ fail:
failtest_suppress = true;
ntdb_close(ntdb);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-35-convert.c b/lib/ntdb/test/run-35-convert.c
index b3ee737794d..873d4e77818 100644
--- a/lib/ntdb/test/run-35-convert.c
+++ b/lib/ntdb/test/run-35-convert.c
@@ -55,4 +55,10 @@ int main(int argc, char *argv[])
ntdb_close(ntdb);
}
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-capabilities.c b/lib/ntdb/test/run-capabilities.c
index dac9302fc65..f968393a1a7 100644
--- a/lib/ntdb/test/run-capabilities.c
+++ b/lib/ntdb/test/run-capabilities.c
@@ -274,4 +274,10 @@ int main(int argc, char *argv[])
out:
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}