mirror of
https://github.com/cc65/cc65.git
synced 2024-06-15 17:30:06 +00:00
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:
parent
2f3955dbc7
commit
88c6dd2da8
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
static unsigned char flag;
|
static unsigned char flag;
|
||||||
|
|
||||||
static void trampoline_set() {
|
static void trampoline_set(void) {
|
||||||
asm("ldy tmp4");
|
asm("ldy tmp4");
|
||||||
asm("sty %v", flag);
|
asm("sty %v", flag);
|
||||||
asm("jsr callptr4");
|
asm("jsr callptr4");
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
static unsigned char flag;
|
static unsigned char flag;
|
||||||
|
|
||||||
static void trampoline_set() {
|
static void trampoline_set(void) {
|
||||||
// The Y register is used for variadics - save and restore
|
// The Y register is used for variadics - save and restore
|
||||||
asm("sty tmp3");
|
asm("sty tmp3");
|
||||||
|
|
||||||
|
|
|
@ -7,13 +7,13 @@
|
||||||
|
|
||||||
static unsigned char flag;
|
static unsigned char flag;
|
||||||
|
|
||||||
static void trampoline_set() {
|
static void trampoline_set(void) {
|
||||||
asm("ldy tmp4");
|
asm("ldy tmp4");
|
||||||
asm("sty %v", flag);
|
asm("sty %v", flag);
|
||||||
asm("jsr callptr4");
|
asm("jsr callptr4");
|
||||||
}
|
}
|
||||||
|
|
||||||
void trampoline_inc() {
|
void trampoline_inc(void) {
|
||||||
asm("inc %v", flag);
|
asm("inc %v", flag);
|
||||||
asm("jsr callptr4");
|
asm("jsr callptr4");
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ void func1(void);
|
||||||
#pragma wrapped-call(pop)
|
#pragma wrapped-call(pop)
|
||||||
#pragma wrapped-call(pop)
|
#pragma wrapped-call(pop)
|
||||||
|
|
||||||
void func1() {
|
void func1(void) {
|
||||||
func2();
|
func2();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user