aboutsummaryrefslogtreecommitdiff
path: root/runtime/libprofile/BasicBlockTracing.c
diff options
context:
space:
mode:
authorFrancois Pichet <pichet2000@gmail.com>2011-05-25 16:32:33 +0000
committerFrancois Pichet <pichet2000@gmail.com>2011-05-25 16:32:33 +0000
commit0b5bb3b2b48d9d8414d209daa9f45cf4b858beb2 (patch)
tree9723e2ea229a3c5a4b7d93610bf74a81cd06572f /runtime/libprofile/BasicBlockTracing.c
parentd9e57c146d3084d7efe2de48dc2cd1f99d4fa656 (diff)
Fix 3 MSVC warnings:
'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)' atexit really expects a "void f(void)" function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/libprofile/BasicBlockTracing.c')
-rw-r--r--runtime/libprofile/BasicBlockTracing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/libprofile/BasicBlockTracing.c b/runtime/libprofile/BasicBlockTracing.c
index dbe81e3f65..0815e2e516 100644
--- a/runtime/libprofile/BasicBlockTracing.c
+++ b/runtime/libprofile/BasicBlockTracing.c
@@ -30,7 +30,7 @@ static void WriteAndFlushBBTraceData () {
/* BBTraceAtExitHandler - When the program exits, just write out any remaining
* data and free the trace buffer.
*/
-static void BBTraceAtExitHandler() {
+static void BBTraceAtExitHandler(void) {
WriteAndFlushBBTraceData ();
free (ArrayStart);
}