Hi, The include file include/llvm-c/Core.h contains declarations such as "LLVMTypeRef LLVMInt1Type();", which raises the warning "function declaration isn't a prototype" when using them in .c files. Using "(void)" instead of "()" is the solution of course. Could someone please: sed -i~ 's/()/(void)/' Core.h [Sorry to be picky, but so is my compiler!] Thanks, -Mahadevan.
> The include file include/llvm-c/Core.h contains declarations > such as "LLVMTypeRef LLVMInt1Type();", which raises the > warning "function declaration isn't a prototype" when > using them in .c files.Can you please send a patch. See http://llvm.org/docs/DeveloperPolicy.html#patches Thanks, Duncan.
On 2008-05-04, at 06:32, Duncan Sands wrote:>> The include file include/llvm-c/Core.h contains declarations >> such as "LLVMTypeRef LLVMInt1Type();", which raises the >> warning "function declaration isn't a prototype" when >> using them in .c files. > > Can you please send a patch. See > http://llvm.org/docs/DeveloperPolicy.html#patchesNever mind; it's taken care of with r50620. — Gordon