Blob Blame Raw
From 88c6dd2da81c10eb36bdc76f236ef3d428d9312e Mon Sep 17 00:00:00 2001
From: Greg King <gregdk@users.sf.net>
Date: Tue, 16 Jul 2019 13:16:02 -0400
Subject: [PATCH 10/29] Changed empty parameter lists into (void) lists on
 functions with asm() statements.

The fix avoids any possible problems with how cc65 will handle old-style (K & R) function declarations, in the future.
---
 test/val/trampoline-params.c  | 2 +-
 test/val/trampoline-varargs.c | 2 +-
 test/val/trampoline.c         | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/val/trampoline-params.c b/test/val/trampoline-params.c
index c05d8c06..9dbbba07 100644
--- a/test/val/trampoline-params.c
+++ b/test/val/trampoline-params.c
@@ -9,7 +9,7 @@
 
 static unsigned char flag;
 
-static void trampoline_set() {
+static void trampoline_set(void) {
         asm("ldy tmp4");
         asm("sty %v", flag);
         asm("jsr callptr4");
diff --git a/test/val/trampoline-varargs.c b/test/val/trampoline-varargs.c
index e2db839c..0e6be49c 100644
--- a/test/val/trampoline-varargs.c
+++ b/test/val/trampoline-varargs.c
@@ -9,7 +9,7 @@
 
 static unsigned char flag;
 
-static void trampoline_set() {
+static void trampoline_set(void) {
         // The Y register is used for variadics - save and restore
         asm("sty tmp3");
 
diff --git a/test/val/trampoline.c b/test/val/trampoline.c
index b2010f6f..8f1e1547 100644
--- a/test/val/trampoline.c
+++ b/test/val/trampoline.c
@@ -7,13 +7,13 @@
 
 static unsigned char flag;
 
-static void trampoline_set() {
+static void trampoline_set(void) {
         asm("ldy tmp4");
         asm("sty %v", flag);
         asm("jsr callptr4");
 }
 
-void trampoline_inc() {
+void trampoline_inc(void) {
         asm("inc %v", flag);
         asm("jsr callptr4");
 }
@@ -35,7 +35,7 @@ void func1(void);
 #pragma wrapped-call(pop)
 #pragma wrapped-call(pop)
 
-void func1() {
+void func1(void) {
         func2();
 }
 
-- 
2.21.0