aboutsummaryrefslogtreecommitdiff
path: root/libobjc/nil_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'libobjc/nil_method.c')
-rw-r--r--libobjc/nil_method.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libobjc/nil_method.c b/libobjc/nil_method.c
index 800b0e3..47201d6 100644
--- a/libobjc/nil_method.c
+++ b/libobjc/nil_method.c
@@ -29,8 +29,12 @@ Boston, MA 02111-1307, USA. */
#include "runtime.h"
+/* nil_method is declared with variable arguments but the runtime calls it
+ in a way that does not setup the variable arguments correctly. Some Architectures
+ that have special arg calling conventions like x86-64 do need every function with
+ variable arguments called the correct way. */
id
-nil_method (id receiver, SEL op __attribute__ ((__unused__)), ...)
+nil_method (id receiver, SEL op __attribute__ ((__unused__)))
{
return receiver;
}