llvm-c: Make LLVMGetFirstTarget a proper prototype
authorAnders Waldenborg <anders@0x63.nu>
Thu, 19 Sep 2013 19:43:55 +0000 (19:43 +0000)
committerAnders Waldenborg <anders@0x63.nu>
Thu, 19 Sep 2013 19:43:55 +0000 (19:43 +0000)
This avoids warnings when included in a application that
uses -Wstrict-prototypes.

Differential Revision: http://llvm-reviews.chandlerc.com/D1713

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191029 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/TargetMachine.h

index 5e355959f642918b6d8c926df5c534d89637dc5f..c2d198c85fdd429a6dc1f006d6916c8e5690bbc4 100644 (file)
@@ -57,7 +57,7 @@ typedef enum {
 } LLVMCodeGenFileType;
 
 /** Returns the first llvm::Target in the registered targets list. */
-LLVMTargetRef LLVMGetFirstTarget();
+LLVMTargetRef LLVMGetFirstTarget(void);
 /** Returns the next llvm::Target given a previous one (or null if there's none) */
 LLVMTargetRef LLVMGetNextTarget(LLVMTargetRef T);