From c8dfe630afcd38118276b119aea551f8c3eaa3fc Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 12 Feb 2012 13:19:34 +0100 Subject: [PATCH] Removed annoying warnings when declaring x64 systemcalls. Actually, the warnings are true, but that's a task for later. --- libmaxsi/include/libmaxsi/syscall.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libmaxsi/include/libmaxsi/syscall.h b/libmaxsi/include/libmaxsi/syscall.h index 2235f496..adca9c63 100644 --- a/libmaxsi/include/libmaxsi/syscall.h +++ b/libmaxsi/include/libmaxsi/syscall.h @@ -148,7 +148,7 @@ namespace Maxsi } #define DEFN_SYSCALL1(type, fn, num, P1) \ - type fn(P1 p1) \ + type fn(P1) \ { \ type a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \ @@ -156,7 +156,7 @@ namespace Maxsi } #define DEFN_SYSCALL2(type, fn, num, P1, P2) \ - type fn(P1 p1, P2 p2) \ + type fn(P1, P2) \ { \ type a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \ @@ -164,7 +164,7 @@ namespace Maxsi } #define DEFN_SYSCALL3(type, fn, num, P1, P2, P3) \ - type fn(P1 p1, P2 p2, P3 p3) \ + type fn(P1, P2, P3) \ { \ type a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \ @@ -172,7 +172,7 @@ namespace Maxsi } #define DEFN_SYSCALL4(type, fn, num, P1, P2, P3, P4) \ - type fn(P1 p1, P2 p2, P3 p3, P4 p4) \ + type fn(P1, P2, P3, P4) \ { \ type a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \ @@ -180,7 +180,7 @@ namespace Maxsi } #define DEFN_SYSCALL5(type, fn, num, P1, P2, P3, P4, P5) \ - type fn(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) \ + type fn(P1, P2, P3, P4, P5) \ { \ type a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \ @@ -195,35 +195,35 @@ namespace Maxsi } #define DEFN_SYSCALL1_VOID(fn, num, P1) \ - void fn(P1 p1) \ + void fn(P1) \ { \ size_t a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \ } #define DEFN_SYSCALL2_VOID(fn, num, P1, P2) \ - void fn(P1 p1, P2 p2) \ + void fn(P1, P2) \ { \ size_t a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \ } #define DEFN_SYSCALL3_VOID(fn, num, P1, P2, P3) \ - void fn(P1 p1, P2 p2, P3 p3) \ + void fn(P1, P2, P3) \ { \ size_t a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \ } #define DEFN_SYSCALL4_VOID(fn, num, P1, P2, P3, P4) \ - void fn(P1 p1, P2 p2, P3 p3, P4 p4) \ + void fn(P1, P2, P3, P4) \ { \ size_t a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \ } #define DEFN_SYSCALL5_VOID(fn, num, P1, P2, P3, P4, P5) \ - void fn(P1 p1, P2 p2, P3 p3, P4 p4, P5 p5) \ + void fn(P1, P2, P3, P4, P5) \ { \ size_t a; \ asm volatile("int $0x80" : "=a" (a) : "0" (num)); \