[compiler-rt] ec9907f - [scudo] Satisfy -Wstrict-prototypes
Dominic Chen via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 11 10:28:46 PDT 2022
Author: Dominic Chen
Date: 2022-07-11T10:28:38-07:00
New Revision: ec9907fbf60af0c444f53be15aa453c83d6b6994
URL: https://github.com/llvm/llvm-project/commit/ec9907fbf60af0c444f53be15aa453c83d6b6994
DIFF: https://github.com/llvm/llvm-project/commit/ec9907fbf60af0c444f53be15aa453c83d6b6994.diff
LOG: [scudo] Satisfy -Wstrict-prototypes
Differential Revision: https://reviews.llvm.org/D129391
Added:
Modified:
compiler-rt/lib/scudo/standalone/include/scudo/interface.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/include/scudo/interface.h b/compiler-rt/lib/scudo/standalone/include/scudo/interface.h
index 9b9a84623c516..23bcfba3982ac 100644
--- a/compiler-rt/lib/scudo/standalone/include/scudo/interface.h
+++ b/compiler-rt/lib/scudo/standalone/include/scudo/interface.h
@@ -14,7 +14,7 @@
extern "C" {
-__attribute__((weak)) const char *__scudo_default_options();
+__attribute__((weak)) const char *__scudo_default_options(void);
// Post-allocation & pre-deallocation hooks.
// They must be thread-safe and not use heap related functions.
@@ -101,14 +101,14 @@ struct scudo_error_info {
struct scudo_error_report reports[3];
};
-const char *__scudo_get_stack_depot_addr();
-size_t __scudo_get_stack_depot_size();
+const char *__scudo_get_stack_depot_addr(void);
+size_t __scudo_get_stack_depot_size(void);
-const char *__scudo_get_region_info_addr();
-size_t __scudo_get_region_info_size();
+const char *__scudo_get_region_info_addr(void);
+size_t __scudo_get_region_info_size(void);
-const char *__scudo_get_ring_buffer_addr();
-size_t __scudo_get_ring_buffer_size();
+const char *__scudo_get_ring_buffer_addr(void);
+size_t __scudo_get_ring_buffer_size(void);
#ifndef M_DECAY_TIME
#define M_DECAY_TIME -100
More information about the llvm-commits
mailing list