Add missing (void) for function declarations in C

This commit is contained in:
David Blaikie 2022-06-28 00:45:17 +00:00
parent 261075590b
commit 9f94d63a6a
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ int handleError(LLVMErrorRef Err) {
return 1;
}
LLVMOrcThreadSafeModuleRef createDemoModule() {
LLVMOrcThreadSafeModuleRef createDemoModule(void) {
LLVMOrcThreadSafeContextRef TSCtx = LLVMOrcCreateNewThreadSafeContext();
LLVMContextRef Ctx = LLVMOrcThreadSafeContextGetContext(TSCtx);
LLVMModuleRef M = LLVMModuleCreateWithNameInContext("demo", Ctx);

View File

@ -32,7 +32,7 @@ int handleError(LLVMErrorRef Err) {
return 1;
}
LLVMOrcThreadSafeModuleRef createDemoModule() {
LLVMOrcThreadSafeModuleRef createDemoModule(void) {
LLVMOrcThreadSafeContextRef TSCtx = LLVMOrcCreateNewThreadSafeContext();
LLVMContextRef Ctx = LLVMOrcThreadSafeContextGetContext(TSCtx);
LLVMModuleRef M = LLVMModuleCreateWithNameInContext("demo", Ctx);