aboutsummaryrefslogtreecommitdiff
path: root/bindings/ocaml
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-12-30 18:12:41 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-12-30 18:12:41 +0000
commita9d059693b0bfdaa27bad71c2b0769beaf6ee7dd (patch)
treeb04a52f5473459d267f70bdfe3ea9beaad62427a /bindings/ocaml
parent309298955a6cfa3020ef932a1df47d8965f8fea5 (diff)
Trying r45451 again, but this time warning-free on 3.10.x.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/ocaml')
-rw-r--r--bindings/ocaml/bitreader/bitreader_ocaml.c3
-rw-r--r--bindings/ocaml/executionengine/executionengine_ocaml.c3
-rw-r--r--bindings/ocaml/llvm/llvm_ocaml.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/bindings/ocaml/bitreader/bitreader_ocaml.c b/bindings/ocaml/bitreader/bitreader_ocaml.c
index b154f68d60..0fd484f123 100644
--- a/bindings/ocaml/bitreader/bitreader_ocaml.c
+++ b/bindings/ocaml/bitreader/bitreader_ocaml.c
@@ -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
}
diff --git a/bindings/ocaml/executionengine/executionengine_ocaml.c b/bindings/ocaml/executionengine/executionengine_ocaml.c
index 58d7d5a77f..0f124c546e 100644
--- a/bindings/ocaml/executionengine/executionengine_ocaml.c
+++ b/bindings/ocaml/executionengine/executionengine_ocaml.c
@@ -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
}
diff --git a/bindings/ocaml/llvm/llvm_ocaml.c b/bindings/ocaml/llvm/llvm_ocaml.c
index 5c8767543f..3f48887e11 100644
--- a/bindings/ocaml/llvm/llvm_ocaml.c
+++ b/bindings/ocaml/llvm/llvm_ocaml.c
@@ -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
}