summaryrefslogtreecommitdiff
path: root/include/sanitizer/esan_interface.h
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-12-21 20:51:16 +0000
committerPetr Hosek <phosek@chromium.org>2017-12-21 20:51:16 +0000
commitbeb22912bbcd54decea94debe2892bf3489c33ce (patch)
treed2367c98c2350718995fa914a65da84d7bb62346 /include/sanitizer/esan_interface.h
parent9090db487e55a83176aecb2810e3f5f2eee39cf1 (diff)
[sanitizer] Make function declarations C-compatible
The public sanitizer headers are intended to be usable from either C++ or C, but they declare no-argument functions with the syntax that is not a proper prototype declaration in C. This goes unnoticed until someone uses -Wsystem-headers. Patch By: mcgrathr Reviewers: phosek, vitalybuka Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D41475 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@321305 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/sanitizer/esan_interface.h')
-rw-r--r--include/sanitizer/esan_interface.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sanitizer/esan_interface.h b/include/sanitizer/esan_interface.h
index 4aff8d47b..c755ed330 100644
--- a/include/sanitizer/esan_interface.h
+++ b/include/sanitizer/esan_interface.h
@@ -37,11 +37,11 @@ extern "C" {
// This function can be called mid-run (or at the end of a run for
// a server process that doesn't shut down normally) to request that
// data for that point in the run be reported from the tool.
-void COMPILER_RT_WEAK __esan_report();
+void COMPILER_RT_WEAK __esan_report(void);
// This function returns the number of samples that the esan tool has collected
// to this point. This is useful for testing.
-unsigned int COMPILER_RT_WEAK __esan_get_sample_count();
+unsigned int COMPILER_RT_WEAK __esan_get_sample_count(void);
#ifdef __cplusplus
} // extern "C"