summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-07-07 20:09:45 (GMT)
committerJason Evans <jasone@canonware.com>2015-07-08 03:10:27 (GMT)
commit0dd3ad3841fba31312ab6e2c9ddbc453dd14f6a5 (patch)
tree6dde1efb74ce530e672dbe6180eb0709927ec297
parentad6800fec32668e34d41321dcc73eda135ef0f84 (diff)
downloadjemalloc-0dd3ad3841fba31312ab6e2c9ddbc453dd14f6a5.zip
jemalloc-0dd3ad3841fba31312ab6e2c9ddbc453dd14f6a5.tar.gz
jemalloc-0dd3ad3841fba31312ab6e2c9ddbc453dd14f6a5.tar.bz2
Fix an assignment type warning for tls_callback.
-rw-r--r--src/tsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tsd.c b/src/tsd.c
index 3b59acf..b8886da 100644
--- a/src/tsd.c
+++ b/src/tsd.c
@@ -151,8 +151,8 @@ _tls_callback(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
# pragma section(".CRT$XLY",long,read)
#endif
JEMALLOC_SECTION(".CRT$XLY") JEMALLOC_ATTR(used)
-static const BOOL (WINAPI *tls_callback)(HINSTANCE hinstDLL,
- DWORD fdwReason, LPVOID lpvReserved) = _tls_callback;
+static BOOL (WINAPI *const tls_callback)(HINSTANCE hinstDLL,
+ DWORD fdwRerason, LPVOID lpvReserved) = _tls_callback;
#endif
#if (!defined(JEMALLOC_MALLOC_THREAD_CLEANUP) && !defined(JEMALLOC_TLS) && \