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.
This commit is contained in:
Greg King 2019-07-16 13:16:02 -04:00
parent 2f3955dbc7
commit 88c6dd2da8
3 changed files with 5 additions and 5 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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();
}