Skip to content

Commit 83bee67

Browse files
authored
fix some compiler warnings (#39142)
- unused jl_iterate_func - cast type of realloc in jl_init_threading
1 parent 6c42190 commit 83bee67

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/builtins.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,6 @@ STATIC_INLINE void _grow_to(jl_value_t **root, jl_value_t ***oldargs, jl_svec_t
523523
*n_alloc = newalloc;
524524
}
525525

526-
static jl_function_t *jl_iterate_func JL_GLOBALLY_ROOTED;
527-
528526
static jl_value_t *do_apply( jl_value_t **args, uint32_t nargs, jl_value_t *iterate)
529527
{
530528
jl_function_t *f = args[0];

src/threading.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ void jl_init_threading(void)
407407
}
408408
if (jl_n_threads <= 0)
409409
jl_n_threads = 1;
410-
jl_measure_compile_time = realloc( jl_measure_compile_time, jl_n_threads * sizeof *jl_measure_compile_time );
411-
jl_cumulative_compile_time = realloc( jl_cumulative_compile_time, jl_n_threads * sizeof *jl_cumulative_compile_time );
410+
jl_measure_compile_time = (uint8_t*)realloc(jl_measure_compile_time, jl_n_threads * sizeof(*jl_measure_compile_time));
411+
jl_cumulative_compile_time = (uint64_t*)realloc(jl_cumulative_compile_time, jl_n_threads * sizeof(*jl_cumulative_compile_time));
412412
#ifndef __clang_analyzer__
413413
jl_all_tls_states = (jl_ptls_t*)calloc(jl_n_threads, sizeof(void*));
414414
#endif

0 commit comments

Comments
 (0)