[llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype

David Blaikie dblaikie at gmail.com
Thu Sep 19 22:13:08 PDT 2013


On Thu, Sep 19, 2013 at 12:43 PM, Anders Waldenborg <anders at 0x63.nu> wrote:

> 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.
>

Should we enable this warning in CFLAGS for LLVM builds to catch this
sooner?


>
> 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);
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130919/2eea5a08/attachment.html>


More information about the llvm-commits mailing list