[PATCH] D129391: [scudo] Satisfy -Wstrict-prototypes
Dominic Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 8 12:45:06 PDT 2022
ddcc created this revision.
ddcc added reviewers: vitalybuka, eugenis.
Herald added subscribers: Enna1, cryptoad.
Herald added a project: All.
ddcc requested review of this revision.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D129391
Files:
compiler-rt/lib/scudo/standalone/include/scudo/interface.h
Index: compiler-rt/lib/scudo/standalone/include/scudo/interface.h
===================================================================
--- compiler-rt/lib/scudo/standalone/include/scudo/interface.h
+++ 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_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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129391.443329.patch
Type: text/x-patch
Size: 1195 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220708/6701612d/attachment.bin>
More information about the llvm-commits
mailing list