Skip to content

Commit 558f44a

Browse files
committed
win: cleanup build warnings
1 parent cfc10f0 commit 558f44a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/threading.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <stdio.h>
1919
#include <stdlib.h>
2020
#include <string.h>
21+
#include <inttypes.h>
2122

2223
#include "julia.h"
2324
#include "julia_internal.h"
@@ -89,11 +90,12 @@ BOOLEAN WINAPI DllMain(IN HINSTANCE hDllHandle, IN DWORD nReason,
8990
TlsFree(jl_tls_key);
9091
break;
9192
}
93+
return 1; // success
9294
}
9395

9496
JL_DLLEXPORT JL_CONST_FUNC jl_tls_states_t *(jl_get_ptls_states)(void)
9597
{
96-
return TlsGetValue(jl_tls_key);
98+
return (jl_tls_states_t*)TlsGetValue(jl_tls_key);
9799
}
98100

99101
jl_get_ptls_states_func jl_get_ptls_states_getter(void)
@@ -545,7 +547,7 @@ JL_DLLEXPORT void jl_threading_profile(void)
545547
if (!fork_ns) return;
546548

547549
printf("\nti profile:\n");
548-
printf("prep: %g (%llu)\n", NS_TO_SECS(prep_ns), (unsigned long long)prep_ns);
550+
printf("prep: %g (%" PRIu64 ")\n", NS_TO_SECS(prep_ns), prep_ns);
549551

550552
uint64_t min, max, avg;
551553
ti_timings(fork_ns, &min, &max, &avg);

0 commit comments

Comments
 (0)