summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontends/tasm/tasm.c4
-rw-r--r--frontends/yasm/yasm.c4
-rw-r--r--modules/objfmts/elf/elf.c4
-rw-r--r--tools/genperf/perfect.c3
4 files changed, 7 insertions, 8 deletions
diff --git a/frontends/tasm/tasm.c b/frontends/tasm/tasm.c
index 353f8c58..9558594e 100644
--- a/frontends/tasm/tasm.c
+++ b/frontends/tasm/tasm.c
@@ -817,7 +817,7 @@ opt_exe_handler(char *cmd, /*@unused@*/ char *param, int extra)
}
static void
-apply_preproc_builtins()
+apply_preproc_builtins(void)
{
char *predef;
@@ -853,7 +853,7 @@ apply_preproc_standard_macros(const yasm_stdmac *stdmacs)
}
static void
-apply_preproc_saved_options()
+apply_preproc_saved_options(void)
{
constcharparam *cp, *cpnext;
diff --git a/frontends/yasm/yasm.c b/frontends/yasm/yasm.c
index d11147ec..2aab8350 100644
--- a/frontends/yasm/yasm.c
+++ b/frontends/yasm/yasm.c
@@ -1376,7 +1376,7 @@ opt_plugin_handler(/*@unused@*/ char *cmd, char *param,
#endif
static void
-apply_preproc_builtins()
+apply_preproc_builtins(void)
{
char *predef;
@@ -1409,7 +1409,7 @@ apply_preproc_standard_macros(const yasm_stdmac *stdmacs)
}
static void
-apply_preproc_saved_options()
+apply_preproc_saved_options(void)
{
constcharparam *cp, *cpnext;
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));
diff --git a/tools/genperf/perfect.c b/tools/genperf/perfect.c
index fa5a4897..318cb5e6 100644
--- a/tools/genperf/perfect.c
+++ b/tools/genperf/perfect.c
@@ -62,8 +62,7 @@ Find the mapping that will produce a perfect hash
*/
/* return the ceiling of the log (base 2) of val */
-ub4 phash_log2(val)
-ub4 val;
+ub4 phash_log2(ub4 val)
{
ub4 i;
for (i=0; ((ub4)1<<i) < val; ++i)