summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-11 07:19:28 +0000
committermidipix <writeonce@midipix.org>2021-04-11 07:21:48 +0000
commitff64c5dc5a5ceb9846e00f6d6fdd7f25e04ea118 (patch)
treecc4b1d8906f619675c879f65e366444f5520b5cf
parent50b1813b6293d3a767329d3f0d6c0eea20bbb92d (diff)
downloadmdso-ff64c5dc5a5ceb9846e00f6d6fdd7f25e04ea118.tar.bz2
mdso-ff64c5dc5a5ceb9846e00f6d6fdd7f25e04ea118.tar.xz
app: posix make support: acknowledge unused parameter inside of source file.
-rw-r--r--project/overrides.mk1
-rw-r--r--src/mdso.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/project/overrides.mk b/project/overrides.mk
index 3c91346..e69de29 100644
--- a/project/overrides.mk
+++ b/project/overrides.mk
@@ -1 +0,0 @@
-src/$(PACKAGE).o: CFLAGS_LAST += -Wno-unused-parameter
diff --git a/src/mdso.c b/src/mdso.c
index 3ba66e7..04c6cf2 100644
--- a/src/mdso.c
+++ b/src/mdso.c
@@ -6,7 +6,10 @@
#include <mdso/mdso.h>
+#define MDSO_UNUSED_PARAMETER(p) (void)p
+
int main(int argc, char ** argv, char ** envp)
{
+ MDSO_UNUSED_PARAMETER(argc);
return mdso_main(argv,envp,0);
}