OSDN Git Service

void foo() is not a valid C prototype, one has to write void foo(void)
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 9 Mar 2016 02:36:09 +0000 (02:36 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 9 Mar 2016 02:36:09 +0000 (02:36 +0000)
Remove a warning introduced in r262977

From: Mehdi Amini <mehdi.amini@apple.com>

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

include/llvm-c/lto.h
tools/lto/lto.cpp

index 06456e4..df27ba8 100644 (file)
@@ -580,7 +580,7 @@ typedef struct {
  *
  * \since LTO_API_VERSION=18
  */
-extern thinlto_code_gen_t thinlto_create_codegen();
+extern thinlto_code_gen_t thinlto_create_codegen(void);
 
 /**
  * Frees the generator and all memory it internally allocated.
index 2c1417d..c6101a5 100644 (file)
@@ -445,7 +445,7 @@ void lto_codegen_set_should_embed_uselists(lto_code_gen_t cg,
 
 // ThinLTO API below
 
-thinlto_code_gen_t thinlto_create_codegen() {
+thinlto_code_gen_t thinlto_create_codegen(void) {
   lto_initialize();
   ThinLTOCodeGenerator *CodeGen = new ThinLTOCodeGenerator();
   CodeGen->setTargetOptions(InitTargetOptionsFromCodeGenFlags());