summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/libprofile/OptimalEdgeProfiling.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
commitf83114dcebd99bcff0da8d14ea3875ec03d74697 (patch)
tree342cc7b22d4c1ac2143290b1b3546fb0a35397c4 /llvm/runtime/libprofile/OptimalEdgeProfiling.c
parent848c3ab60a917a2ceafc752672aae8f643d2210c (diff)
downloadbcm5719-llvm-f83114dcebd99bcff0da8d14ea3875ec03d74697.tar.gz
bcm5719-llvm-f83114dcebd99bcff0da8d14ea3875ec03d74697.zip
Fix 3 MSVC warnings:
'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)' atexit really expects a "void f(void)" function. llvm-svn: 132061
Diffstat (limited to 'llvm/runtime/libprofile/OptimalEdgeProfiling.c')
-rw-r--r--llvm/runtime/libprofile/OptimalEdgeProfiling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/runtime/libprofile/OptimalEdgeProfiling.c b/llvm/runtime/libprofile/OptimalEdgeProfiling.c
index 947da532605..3a7631b6e83 100644
--- a/llvm/runtime/libprofile/OptimalEdgeProfiling.c
+++ b/llvm/runtime/libprofile/OptimalEdgeProfiling.c
@@ -22,7 +22,7 @@ static unsigned NumElements;
/* OptEdgeProfAtExitHandler - When the program exits, just write out the
* profiling data.
*/
-static void OptEdgeProfAtExitHandler() {
+static void OptEdgeProfAtExitHandler(void) {
/* Note that, although the array has a counter for each edge, not all
* counters are updated, the ones that are not used are initialised with -1.
* When loading this information the counters with value -1 have to be
OpenPOWER on IntegriCloud