summaryrefslogtreecommitdiff
path: root/frontends
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 /frontends
parent22da04ee0dbd9ac16eb74dabd3df071a0f8e8eba (diff)
downloadyasm-f79f5e37f0e4b06d5dc303cc219929d7359dd7df.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 'frontends')
-rw-r--r--frontends/tasm/tasm.c4
-rw-r--r--frontends/yasm/yasm.c4
2 files changed, 4 insertions, 4 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;