From e9c0d1574a2ad06900b6903133cf2c275e5cd3eb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 28 Apr 2010 20:24:45 +0000 Subject: [PATCH] declare targets with (void) instead of () since this is a C header. Patch by Lars R in PR6961. llvm-svn: 102523 --- include/llvm-c/Target.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm-c/Target.h b/include/llvm-c/Target.h index e705a998969..2e952a3530c 100644 --- a/include/llvm-c/Target.h +++ b/include/llvm-c/Target.h @@ -32,11 +32,11 @@ typedef struct LLVMOpaqueTargetData *LLVMTargetDataRef; typedef struct LLVMStructLayout *LLVMStructLayoutRef; /* Declare all of the target-initialization functions that are available. */ -#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##TargetInfo(); +#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##TargetInfo(void); #include "llvm/Config/Targets.def" #undef LLVM_TARGET /* Explicit undef to make SWIG happier */ -#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target(); +#define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target(void); #include "llvm/Config/Targets.def" #undef LLVM_TARGET /* Explicit undef to make SWIG happier */