From b5eec7890b4e6c04b0d6ed2dc9111ed496520b5f Mon Sep 17 00:00:00 2001 From: Benedikt Meurer Date: Sun, 5 Feb 2012 09:56:23 +0000 Subject: [PATCH] Fix various compiler warnings in asmrun. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12128 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- asmrun/fail.c | 6 +++--- asmrun/startup.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/asmrun/fail.c b/asmrun/fail.c index f6ac13e1b..77cf4246c 100644 --- a/asmrun/fail.c +++ b/asmrun/fail.c @@ -209,7 +209,7 @@ void caml_array_bound_error(void) } int caml_is_special_exception(value exn) { - return exn == caml_exn_Match_failure - || exn == caml_exn_Assert_failure - || exn == caml_exn_Undefined_recursive_module; + return exn == (value) caml_exn_Match_failure + || exn == (value) caml_exn_Assert_failure + || exn == (value) caml_exn_Undefined_recursive_module; } diff --git a/asmrun/startup.c b/asmrun/startup.c index 0f8ed10f7..4ff4b1d61 100644 --- a/asmrun/startup.c +++ b/asmrun/startup.c @@ -20,6 +20,7 @@ #include "callback.h" #include "backtrace.h" #include "custom.h" +#include "debugger.h" #include "fail.h" #include "freelist.h" #include "gc.h"