Trying r45451 again, but this time warning-free on 3.10.x.
authorGordon Henriksen <gordonhenriksen@mac.com>
Sun, 30 Dec 2007 18:12:41 +0000 (18:12 +0000)
committerGordon Henriksen <gordonhenriksen@mac.com>
Sun, 30 Dec 2007 18:12:41 +0000 (18:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45452 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/ocaml/bitreader/bitreader_ocaml.c
bindings/ocaml/executionengine/executionengine_ocaml.c
bindings/ocaml/llvm/llvm_ocaml.c

index b154f68..0fd484f 100644 (file)
@@ -37,6 +37,9 @@ static void llvm_raise(value Prototype, char *Message) {
   
   raise_with_arg(Prototype, CamlMessage);
   abort(); /* NOTREACHED */
+#ifdef CAMLnoreturn
+  CAMLnoreturn; /* Silences warnings, but is missing in some versions. */
+#endif
 }
 
 
index 58d7d5a..0f124c5 100644 (file)
@@ -43,6 +43,9 @@ static void llvm_raise(value Prototype, char *Message) {
   
   raise_with_arg(Prototype, CamlMessage);
   abort(); /* NOTREACHED */
+#ifdef CAMLnoreturn
+  CAMLnoreturn; /* Silences warnings, but is missing in some versions. */
+#endif
 }
 
 
index 5c87675..3f48887 100644 (file)
@@ -45,6 +45,9 @@ static void llvm_raise(value Prototype, char *Message) {
   
   raise_with_arg(Prototype, CamlMessage);
   abort(); /* NOTREACHED */
+#ifdef CAMLnoreturn
+  CAMLnoreturn; /* Silences warnings, but is missing in some versions. */
+#endif
 }