From 5e01ef406b0a8c808877a085c732a216356cc3ff Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Wed, 9 Mar 2016 02:36:09 +0000 Subject: [PATCH] void foo() is not a valid C prototype, one has to write void foo(void) Remove a warning introduced in r262977 From: Mehdi Amini git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262990 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/lto.h | 2 +- tools/lto/lto.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 06456e45859..df27ba8abe1 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -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. diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 2c1417db5fc..c6101a56f8c 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -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()); -- 2.11.0