From fc92e6c3f1c5c2ca531bd49d4d578c392a5adeff Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 11 2021 07:34:02 +0000 Subject: app: posix make support: acknowledge unused parameter inside of source file. --- 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/tpax.c b/src/tpax.c index a2af3b7..246fafc 100644 --- a/src/tpax.c +++ b/src/tpax.c @@ -6,7 +6,10 @@ #include +#define TPAX_UNUSED_PARAMETER(p) (void)p + int main(int argc, char ** argv, char ** envp) { + TPAX_UNUSED_PARAMETER(argc); return tpax_main(argv,envp,0); }