<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 19, 2013 at 12:43 PM, Anders Waldenborg <span dir="ltr"><<a href="mailto:anders@0x63.nu" target="_blank">anders@0x63.nu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: andersg<br>
Date: Thu Sep 19 14:43:55 2013<br>
New Revision: 191029<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=191029&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=191029&view=rev</a><br>
Log:<br>
llvm-c: Make LLVMGetFirstTarget a proper prototype<br>
<br>
This avoids warnings when included in a application that<br>
uses -Wstrict-prototypes.<br></blockquote><div><br></div><div>Should we enable this warning in CFLAGS for LLVM builds to catch this sooner?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Differential Revision: <a href="http://llvm-reviews.chandlerc.com/D1713" target="_blank">http://llvm-reviews.chandlerc.com/D1713</a><br>
<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm-c/TargetMachine.h<br>
<br>
Modified: llvm/trunk/include/llvm-c/TargetMachine.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/TargetMachine.h?rev=191029&r1=191028&r2=191029&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/TargetMachine.h?rev=191029&r1=191028&r2=191029&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/include/llvm-c/TargetMachine.h (original)<br>
+++ llvm/trunk/include/llvm-c/TargetMachine.h Thu Sep 19 14:43:55 2013<br>
@@ -57,7 +57,7 @@ typedef enum {<br>
 } LLVMCodeGenFileType;<br>
<br>
 /** Returns the first llvm::Target in the registered targets list. */<br>
-LLVMTargetRef LLVMGetFirstTarget();<br>
+LLVMTargetRef LLVMGetFirstTarget(void);<br>
 /** Returns the next llvm::Target given a previous one (or null if there's none) */<br>
 LLVMTargetRef LLVMGetNextTarget(LLVMTargetRef T);<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div></div>