ntdb: Fix control reaches end of non-void function.
authorAndreas Schneider <asn@samba.org>
Tue, 18 Nov 2014 13:16:58 +0000 (14:16 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 28 Nov 2014 13:24:07 +0000 (14:24 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
lib/ntdb/test/run-01-new_database.c
lib/ntdb/test/run-02-expand.c
lib/ntdb/test/run-05-readonly-open.c
lib/ntdb/test/run-10-simple-store.c
lib/ntdb/test/run-11-simple-fetch.c
lib/ntdb/test/run-12-check.c
lib/ntdb/test/run-35-convert.c
lib/ntdb/test/run-capabilities.c

index fe142bdece3cf8dd32023d4333b5a0043d506818..ab69477b86f5740afbe4b41774bd0de892825818 100644 (file)
@@ -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;
 }
index 635bf8920655a7aed903155581bb16493ffb72de..e808989db459ed2d73bcd1597401a9c029a5ffa3 100644 (file)
@@ -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;
 }
index e0de0d96e3a22a64458d82fe7be5c213738210ed..87caf9533fdda5d0e17ec6b8cdf16de37a625b1d 100644 (file)
@@ -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;
 }
index 3e5959a647ad57278c0b1a33b88784ce94e06bcb..0add1f10fb588534fa3787e8d4337e2b084e13f0 100644 (file)
@@ -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;
 }
index 9565ade930d7f906ff3fde32374980bd70fe739f..779a5ea14dac29c14cf64020654a98fce96b1bb5 100644 (file)
@@ -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;
 }
index 8abc86dff9106f8a87e6c32b71f6a554d5f428f0..7211761f1896ea4bb43ca33821ced781ef5425c1 100644 (file)
@@ -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;
 }
index b3ee737794d2a5dc047f06017d66ab2cc207751d..873d4e7781810debd6cc010794172a0b02d40258 100644 (file)
@@ -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;
 }
index dac9302fc6556c16ff6bc24143ad3ae92a10ea28..f968393a1a70b453b08813e60c497110e40f4bfc 100644 (file)
@@ -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;
 }