Re: [Fx2lib-devel] Deprecation warnings
Status: Beta
Brought to you by:
mulicheng
From: Daniel O'C. <doc...@gs...> - 2010-07-18 10:22:36
|
On 17/07/2010, at 24:45, Daniel O'Connor wrote: >> entries, would be nice to convert to that one of these days. I'm not >> sure where I like __interrupt, __at et al. Perhaps just changing >> them is best. > > I would be inclined to add something to the makefiles like... I read the manual a bit and found this.. Certain words that are valid identifiers in the standard may be reserved words in SDCC unless the --std- c89 or --std-c99 command line options are used. These may include (depending on the selected processor): ’at’, ’banked’, ’bit’, ’code’, ’critical’, ’data’, ’eeprom’, ’far’, ’flash’, ’idata’, ’interrupt’, ’near’, ’nonbanked’, ’pdata’, ’reentrant’, ’sbit’, ’sfr’, ’shadowregs’, ’sram’, ’using’, ’wparam’, ’xdata’, ’_overlay’, ’_asm’, ’_en- dasm’, and ’_naked’. The compiler displays a warning "keyword <keyword> is deprecated, use ’__<key- word>’ instead" in such cases. The warning can be disabled by using "#pragma disable_warning 197" in the source file or "–disable-warning 197" command line option. Compliant equivalents of these keywords are always available in a form that begin with two underscores, f.e. ’__data’ instead of ’data’ and ’__asm’ instead of ’_asm’. So perhaps using that pragma makes sense for a few SDCC revisions. That said SDCC 2.9.0 understands them. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C |