1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00

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:
/* A computed goto label address */
if (IS_Get (&Standard) >= STD_CC65) {
SymEntry* Entry;
NextToken ();
SymEntry* Entry = AddLabelSym (CurTok.Ident, SC_REF | SC_GOTO_IND);
Entry = AddLabelSym (CurTok.Ident, SC_REF | SC_GOTO_IND);
/* output its label */
E->Flags = E_RTYPE_RVAL | E_LOC_STATIC;
E->Name = Entry->V.L.Label;

View File

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

View File

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