Skip to content

Commit

Permalink
flambda-backend: Fix warnings (runtime) (#1973)
Browse files Browse the repository at this point in the history
* Avoid multiple definitions.

* Fix C prototypes.
  • Loading branch information
xclerc authored Oct 31, 2023
1 parent 59c1640 commit 603d278
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ocamltest/run_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

#define _GNU_SOURCE

#ifndef CAML_INTERNALS
#define CAML_INTERNALS
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions ocamltest/run_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

/* Run programs with rediretions and timeouts under Unix */

#ifndef CAML_INTERNALS
#define CAML_INTERNALS
#endif

#include <stdio.h>
#include <limits.h>
Expand Down
2 changes: 1 addition & 1 deletion runtime4/caml/major_gc.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void caml_init_major_heap (asize_t); /* size in bytes */
asize_t caml_clip_heap_chunk_wsz (asize_t wsz);
void caml_darken (value, value *);
void caml_major_collection_slice (intnat);
void caml_shrink_mark_stack ();
void caml_shrink_mark_stack (void);
void major_collection (void);
void caml_finish_major_cycle (void);
void caml_set_major_window (int);
Expand Down

0 comments on commit 603d278

Please sign in to comment.