mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
add warning for .feature addrsize, clean up switch in SetFeature
This commit is contained in:
parent
bee29dedd1
commit
56df849101
@ -121,8 +121,6 @@ void SetFeature (feature_t Feature, unsigned char On)
|
|||||||
case FEAT_BRACKET_AS_INDIRECT: BracketAsIndirect = On; break;
|
case FEAT_BRACKET_AS_INDIRECT: BracketAsIndirect = On; break;
|
||||||
case FEAT_STRING_ESCAPES: StringEscapes = On; break;
|
case FEAT_STRING_ESCAPES: StringEscapes = On; break;
|
||||||
case FEAT_LONG_JSR_JMP_RTS: LongJsrJmpRts = On; break;
|
case FEAT_LONG_JSR_JMP_RTS: LongJsrJmpRts = On; break;
|
||||||
/* Accept, but ignore addrsize */
|
|
||||||
case FEAT_ADDRSIZE: break;
|
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1043,6 +1043,12 @@ static void DoFeature (void)
|
|||||||
ErrorSkip ("Invalid feature: '%m%p'", &CurTok.SVal);
|
ErrorSkip ("Invalid feature: '%m%p'", &CurTok.SVal);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Feature == FEAT_ADDRSIZE) {
|
||||||
|
/* Warn for depreciated .feature addrsize */
|
||||||
|
Warning (1, "Depreciated feature: '.feature addrsize'. Pseudo function .addrsize is always available.");
|
||||||
|
}
|
||||||
|
|
||||||
NextTok ();
|
NextTok ();
|
||||||
|
|
||||||
/* Optional +/- or ON/OFF */
|
/* Optional +/- or ON/OFF */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user