diff options
author | Reid Kleckner <rnk@google.com> | 2016-02-11 00:22:43 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-02-11 00:22:43 +0000 |
commit | 2f310572a691fed303810d63c5ac9400eb7cebda (patch) | |
tree | ed57994eee73a0afeef2c43e7ebbd101a2a32058 /lib/profile/GCDAProfiling.c | |
parent | 26c5230bfd172a8ad61695ed7e898e699f127717 (diff) |
Silence MSVC warning about non-void prototypes
It thinks that these functions don't match the function pointer type
that they are passed with:
GCDAProfiling.c(578) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
GCDAProfiling.c(579) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
GCDAProfiling.c(580) : warning C4113: 'void (__cdecl *)()' differs in parameter lists from 'void (__cdecl *)(void)'
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@260475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/GCDAProfiling.c')
-rw-r--r-- | lib/profile/GCDAProfiling.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/profile/GCDAProfiling.c b/lib/profile/GCDAProfiling.c index d37d83fad..44c0569e0 100644 --- a/lib/profile/GCDAProfiling.c +++ b/lib/profile/GCDAProfiling.c @@ -511,7 +511,7 @@ void llvm_register_writeout_function(writeout_fn fn) { } } -void llvm_writeout_files() { +void llvm_writeout_files(void) { struct writeout_fn_node *curr = writeout_fn_head; while (curr) { @@ -520,7 +520,7 @@ void llvm_writeout_files() { } } -void llvm_delete_writeout_function_list() { +void llvm_delete_writeout_function_list(void) { while (writeout_fn_head) { struct writeout_fn_node *node = writeout_fn_head; writeout_fn_head = writeout_fn_head->next; @@ -552,7 +552,7 @@ void __gcov_flush() { } } -void llvm_delete_flush_function_list() { +void llvm_delete_flush_function_list(void) { while (flush_fn_head) { struct flush_fn_node *node = flush_fn_head; flush_fn_head = flush_fn_head->next; |