diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-08-31 13:23:24 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-08-31 13:23:24 +0000 |
commit | 72a53283924a94115e513ffdf7a11582b60bf4b1 (patch) | |
tree | 9772dce5c2a90e00a9ef553532d9b7f570590fd8 /lib/profile/GCDAProfiling.c | |
parent | 1c3df8c3b6deb2547abd998c3f688c7d56494333 (diff) |
Build LLVM with -Wstrict-prototypes enabled
Clang 5 supports -Wstrict-prototypes. We should use it to catch any C
declarations that declare a non-prototype function.
rdar://33705313
Differential Revision: https://reviews.llvm.org/D36669
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@312240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/GCDAProfiling.c')
-rw-r--r-- | lib/profile/GCDAProfiling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/profile/GCDAProfiling.c b/lib/profile/GCDAProfiling.c index 138af6ec4..eb8a937f3 100644 --- a/lib/profile/GCDAProfiling.c +++ b/lib/profile/GCDAProfiling.c @@ -92,7 +92,7 @@ static int fd = -1; /* * A list of functions to write out the data. */ -typedef void (*writeout_fn)(); +typedef void (*writeout_fn)(void); struct writeout_fn_node { writeout_fn fn; @@ -105,7 +105,7 @@ static struct writeout_fn_node *writeout_fn_tail = NULL; /* * A list of flush functions that our __gcov_flush() function should call. */ -typedef void (*flush_fn)(); +typedef void (*flush_fn)(void); struct flush_fn_node { flush_fn fn; |