diff options
author | Francois Pichet <pichet2000@gmail.com> | 2011-05-25 16:32:33 +0000 |
---|---|---|
committer | Francois Pichet <pichet2000@gmail.com> | 2011-05-25 16:32:33 +0000 |
commit | 0b5bb3b2b48d9d8414d209daa9f45cf4b858beb2 (patch) | |
tree | 9723e2ea229a3c5a4b7d93610bf74a81cd06572f /runtime/libprofile/EdgeProfiling.c | |
parent | d9e57c146d3084d7efe2de48dc2cd1f99d4fa656 (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/EdgeProfiling.c')
-rw-r--r-- | runtime/libprofile/EdgeProfiling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/libprofile/EdgeProfiling.c b/runtime/libprofile/EdgeProfiling.c index 4a68a086fb..f19e188f0d 100644 --- a/runtime/libprofile/EdgeProfiling.c +++ b/runtime/libprofile/EdgeProfiling.c @@ -22,7 +22,7 @@ static unsigned NumElements; /* EdgeProfAtExitHandler - When the program exits, just write out the profiling * data. */ -static void EdgeProfAtExitHandler() { +static void EdgeProfAtExitHandler(void) { /* Note that if this were doing something more intelligent with the * instrumentation, we could do some computation here to expand what we * collected into simple edge profiles. Since we directly count each edge, we |