From 3cf5e580e7e04e70129535642a8d5df81dd8c752 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 29 Apr 2022 13:14:44 +0200 Subject: [PATCH] Remove duplicate definition of jl_gc_safepoint This prevents a compiler warning on some systems --- src/julia.h | 2 +- src/julia_threads.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/julia.h b/src/julia.h index ada09fe61fadda..06c119782aef9a 100644 --- a/src/julia.h +++ b/src/julia.h @@ -939,7 +939,7 @@ STATIC_INLINE void jl_gc_multi_wb(const void *parent, const jl_value_t *ptr) JL_ JL_DLLEXPORT void *jl_gc_managed_malloc(size_t sz); JL_DLLEXPORT void *jl_gc_managed_realloc(void *d, size_t sz, size_t oldsz, int isaligned, jl_value_t *owner); -JL_DLLEXPORT void jl_gc_safepoint(void); +JL_DLLEXPORT void (jl_gc_safepoint)(void); // object accessors ----------------------------------------------------------- diff --git a/src/julia_threads.h b/src/julia_threads.h index 6f1c4e50d4e951..6cca406eaafef4 100644 --- a/src/julia_threads.h +++ b/src/julia_threads.h @@ -362,7 +362,6 @@ int8_t jl_gc_safe_leave(jl_ptls_t ptls, int8_t state); // Can be a safepoint #define jl_gc_safe_enter(ptls) jl_gc_state_save_and_set(ptls, JL_GC_STATE_SAFE) #define jl_gc_safe_leave(ptls, state) ((void)jl_gc_state_set(ptls, (state), JL_GC_STATE_SAFE)) #endif -JL_DLLEXPORT void (jl_gc_safepoint)(void); JL_DLLEXPORT void jl_gc_enable_finalizers(struct _jl_task_t *ct, int on); JL_DLLEXPORT void jl_gc_disable_finalizers_internal(void);