summaryrefslogtreecommitdiff
path: root/modules/objfmts
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2023-05-18 03:53:32 +0530
committerGitHub <noreply@github.com>2023-05-17 15:23:32 -0700
commitf79f5e37f0e4b06d5dc303cc219929d7359dd7df (patch)
treec027a86c7f266f301d72c2e1a9dd93017767dde4 /modules/objfmts
parent22da04ee0dbd9ac16eb74dabd3df071a0f8e8eba (diff)
downloadyasm-master.tar.gz
Fix function declaration warnings with clang (#226)HEADmaster
This fixes the following compiler warnings with clang tools/genperf/perfect.c:65:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] frontends/yasm/yasm.c:1379:23: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] modules/objfmts/elf/elf.c:225:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
Diffstat (limited to 'modules/objfmts')
-rw-r--r--modules/objfmts/elf/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/objfmts/elf/elf.c b/modules/objfmts/elf/elf.c
index 2486bba8..67fe3f26 100644
--- a/modules/objfmts/elf/elf.c
+++ b/modules/objfmts/elf/elf.c
@@ -222,7 +222,7 @@ elf_strtab_entry_set_str(elf_strtab_entry *entry, const char *str)
}
elf_strtab_head *
-elf_strtab_create()
+elf_strtab_create(void)
{
elf_strtab_head *strtab = yasm_xmalloc(sizeof(elf_strtab_head));
elf_strtab_entry *entry = yasm_xmalloc(sizeof(elf_strtab_entry));
@@ -373,7 +373,7 @@ elf_ssym_symtab_entry_print(void *data, FILE *f, int indent_level)
}
elf_symtab_head *
-elf_symtab_create()
+elf_symtab_create(void)
{
elf_symtab_head *symtab = yasm_xmalloc(sizeof(elf_symtab_head));
elf_symtab_entry *entry = yasm_xmalloc(sizeof(elf_symtab_entry));