From beb22912bbcd54decea94debe2892bf3489c33ce Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Thu, 21 Dec 2017 20:51:16 +0000 Subject: [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 --- include/sanitizer/coverage_interface.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/sanitizer/coverage_interface.h') diff --git a/include/sanitizer/coverage_interface.h b/include/sanitizer/coverage_interface.h index 081033cec..bc95a5caf 100644 --- a/include/sanitizer/coverage_interface.h +++ b/include/sanitizer/coverage_interface.h @@ -20,10 +20,10 @@ extern "C" { #endif // Record and dump coverage info. - void __sanitizer_cov_dump(); + void __sanitizer_cov_dump(void); // Clear collected coverage info. - void __sanitizer_cov_reset(); + void __sanitizer_cov_reset(void); // Dump collected coverage info. Sorts pcs by module into individual .sancov // files. -- cgit v1.2.3