C90 param, void

This commit is contained in:
Lauri Kasanen
2019-04-14 19:45:53 +03:00
committed by greg-king5
parent a9cbb5305c
commit 654d972288
3 changed files with 5 additions and 4 deletions

View File

@@ -699,8 +699,9 @@ static void Primary (ExprDesc* E)
case TOK_BOOL_AND: case TOK_BOOL_AND:
/* A computed goto label address */ /* A computed goto label address */
if (IS_Get (&Standard) >= STD_CC65) { if (IS_Get (&Standard) >= STD_CC65) {
SymEntry* Entry;
NextToken (); NextToken ();
SymEntry* Entry = AddLabelSym (CurTok.Ident, SC_REF | SC_GOTO_IND); Entry = AddLabelSym (CurTok.Ident, SC_REF | SC_GOTO_IND);
/* output its label */ /* output its label */
E->Flags = E_RTYPE_RVAL | E_LOC_STATIC; E->Flags = E_RTYPE_RVAL | E_LOC_STATIC;
E->Name = Entry->V.L.Label; E->Name = Entry->V.L.Label;

View File

@@ -43,7 +43,7 @@ static void act(const unsigned char op) {
return; return;
} }
int main() { int main(void) {
val = val2 = 0; val = val2 = 0;

View File

@@ -4,7 +4,7 @@ static void foo(void) {
val = 5; val = 5;
} }
static void wrap() { static void wrap(void) {
asm("lda #<%v", foo); asm("lda #<%v", foo);
asm("ldx #>%v", foo); asm("ldx #>%v", foo);
@@ -12,7 +12,7 @@ static void wrap() {
} }
int main() { int main(void) {
val = 0; val = 0;
wrap(); wrap();