[llvm] r262990 - void foo() is not a valid C prototype, one has to write void foo(void)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 8 18:36:09 PST 2016
Author: mehdi_amini
Date: Tue Mar 8 20:36:09 2016
New Revision: 262990
URL: http://llvm.org/viewvc/llvm-project?rev=262990&view=rev
Log:
void foo() is not a valid C prototype, one has to write void foo(void)
Remove a warning introduced in r262977
From: Mehdi Amini <mehdi.amini at apple.com>
Modified:
llvm/trunk/include/llvm-c/lto.h
llvm/trunk/tools/lto/lto.cpp
Modified: llvm/trunk/include/llvm-c/lto.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/lto.h?rev=262990&r1=262989&r2=262990&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/lto.h (original)
+++ llvm/trunk/include/llvm-c/lto.h Tue Mar 8 20:36:09 2016
@@ -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.
Modified: llvm/trunk/tools/lto/lto.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/lto.cpp?rev=262990&r1=262989&r2=262990&view=diff
==============================================================================
--- llvm/trunk/tools/lto/lto.cpp (original)
+++ llvm/trunk/tools/lto/lto.cpp Tue Mar 8 20:36:09 2016
@@ -445,7 +445,7 @@ void lto_codegen_set_should_embed_uselis
// 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());
More information about the llvm-commits
mailing list