diff options
| author | Olivier Andrieu <oandrieu@gmail.com> | 2017-02-27 17:32:44 +0100 |
|---|---|---|
| committer | David Allsopp <david.allsopp@metastack.com> | 2017-08-14 21:19:16 +0100 |
| commit | ad273c995a78bee2e7158c15093e0f4c322708fa (patch) | |
| tree | 3842ac6f78c257ed7f9345043bc1a239bad4882a /asmrun | |
| parent | a1fa0338ef7e11052ef304936694bddda3214fc4 (diff) | |
| download | ocaml-ad273c995a78bee2e7158c15093e0f4c322708fa.tar.gz | |
Fix several printf format string issues
- enable gcc typechecking for the format string in caml_alloc_sprintf and
caml_gc_message
- make caml_gc_message a variadic function
- use the proper format type modifier for intnat/uintnat arguments:
ARCH_INTNAT_PRINTF_FORMAT rather than %ld/%lu
Diffstat (limited to 'asmrun')
| -rw-r--r-- | asmrun/startup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asmrun/startup.c b/asmrun/startup.c index 41c1878e0a..3c8f8a0a70 100644 --- a/asmrun/startup.c +++ b/asmrun/startup.c @@ -114,7 +114,7 @@ value caml_startup_common(char **argv, int pooling) #endif caml_parse_ocamlrunparam(); #ifdef DEBUG - caml_gc_message (-1, "### OCaml runtime: debug mode ###\n", 0); + caml_gc_message (-1, "### OCaml runtime: debug mode ###\n"); #endif if (caml_cleanup_on_exit) pooling = 1; |
