Skip to content

Commit 9cd3622

Browse files
committed
[tools] Fix -Wstrict-prototypes in llvm-c-test.h (NFC)
/llvm-project/llvm/tools/llvm-c-test/llvm-c-test.h:39:24: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] int llvm_test_dibuilder(); ^ void 1 error generated.
1 parent a945f55 commit 9cd3622

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/tools/llvm-c-test/debuginfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ declare_objc_class(LLVMDIBuilderRef DIB, LLVMMetadataRef File) {
2929
return Decl;
3030
}
3131

32-
int llvm_test_dibuilder() {
32+
int llvm_test_dibuilder(void) {
3333
const char *Filename = "debuginfo.c";
3434
LLVMModuleRef M = LLVMModuleCreateWithName(Filename);
3535

llvm/tools/llvm-c-test/llvm-c-test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ int llvm_calc(void);
3636
int llvm_disassemble(void);
3737

3838
// debuginfo.c
39-
int llvm_test_dibuilder();
39+
int llvm_test_dibuilder(void);
4040
int llvm_get_di_tag(void);
4141
int llvm_di_type_get_name(void);
4242

0 commit comments

Comments
 (0)