C90 param, void
This commit is contained in:
parent
a9cbb5305c
commit
654d972288
3 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -43,7 +43,7 @@ static void act(const unsigned char op) {
|
|||
return;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
|
||||
val = val2 = 0;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue