diff options
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | include/mempool.h | 2 | ||||
-rw-r--r-- | src/dwarf/Gfind_proc_info-lsb.c | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b542f24..c9d3a666 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,6 @@ if ("${CMAKE_GENERATOR}" MATCHES "^Visual Studio.*$") add_compile_options(-wd4068) # ignore unknown pragma warnings (gcc pragmas) add_compile_options(-wd4146) # minus operator applied to unsigned add_compile_options(-wd4244) # possible loss of data - add_compile_options(-wd4267) # possible loss of data add_compile_options(-wd4334) # 32-bit shift implicitly converted to 64 bits # Disable warning due to incorrect format specifier in debugging printf via the Debug macro @@ -87,7 +86,7 @@ if ("${CMAKE_GENERATOR}" MATCHES "^Visual Studio.*$") if (NOT HAVE_STDATOMIC_H) configure_file(include/win/fakestdatomic.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/stdatomic.h) endif (NOT HAVE_STDATOMIC_H) - + # MSVC compiler is currently missing C11 _Thread_local check_c_source_compiles("void main() { _Thread_local int a; }" HAVE_THREAD_LOCAL) if (NOT HAVE_THREAD_LOCAL) diff --git a/include/mempool.h b/include/mempool.h index 1f1c7700..ab27b06e 100644 --- a/include/mempool.h +++ b/include/mempool.h @@ -63,7 +63,7 @@ struct mempool pthread_mutex_t lock; size_t obj_size; /* object size (rounded up for alignment) */ size_t chunk_size; /* allocation granularity */ - unsigned int reserve; /* minimum (desired) size of the free-list */ + size_t reserve; /* minimum (desired) size of the free-list */ unsigned int num_free; /* number of objects on the free-list */ struct object { diff --git a/src/dwarf/Gfind_proc_info-lsb.c b/src/dwarf/Gfind_proc_info-lsb.c index 35bb2df0..824e9eb9 100644 --- a/src/dwarf/Gfind_proc_info-lsb.c +++ b/src/dwarf/Gfind_proc_info-lsb.c @@ -866,9 +866,9 @@ remote_lookup (unw_addr_space_t as, unw_word_t table, size_t table_size, int32_t rel_ip, struct table_entry *e, int32_t *last_ip_offset, void *arg) { - unsigned long table_len = table_size / sizeof (struct table_entry); + size_t table_len = table_size / sizeof (struct table_entry); unw_accessors_t *a = unw_get_accessors_int (as); - unsigned long lo, hi, mid; + size_t lo, hi, mid; unw_word_t e_addr = 0; int32_t start = 0; int ret; |