[llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype
Anders Waldenborg
anders at 0x63.nu
Thu Sep 19 12:43:56 PDT 2013
Author: andersg
Date: Thu Sep 19 14:43:55 2013
New Revision: 191029
URL: http://llvm.org/viewvc/llvm-project?rev=191029&view=rev
Log:
llvm-c: Make LLVMGetFirstTarget a proper prototype
This avoids warnings when included in a application that
uses -Wstrict-prototypes.
Differential Revision: http://llvm-reviews.chandlerc.com/D1713
Modified:
llvm/trunk/include/llvm-c/TargetMachine.h
Modified: llvm/trunk/include/llvm-c/TargetMachine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/TargetMachine.h?rev=191029&r1=191028&r2=191029&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/TargetMachine.h (original)
+++ llvm/trunk/include/llvm-c/TargetMachine.h Thu Sep 19 14:43:55 2013
@@ -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);
More information about the llvm-commits
mailing list