mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-27 00:15:58 +00:00
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@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3ceb82abb
commit
5e01ef406b
@ -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.
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user