In memfd_create() if SYS_memfd_create is not defined then uname and
flag are unused and gcc complains.
---
fd-memfd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fd-memfd.c b/fd-memfd.c
index 2d16427a2b40..583d8ed1f373 100644
--- a/fd-memfd.c
+++ b/fd-memfd.c
@@ -17,8 +17,9 @@
#include "sanitise.h"
#include "shm.h"
#include "compat.h"
+#include "trinity.h"
-static int memfd_create(const char *uname, unsigned int flag)
+static int memfd_create(__unused__ const char *uname, __unused__ unsigned int
flag)
{
#ifdef SYS_memfd_create
return syscall(SYS_memfd_create, uname, flag);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html