From: SourceForge.net <no...@so...> - 2010-11-13 21:16:20
|
Bugs item #3108582, was opened at 2010-11-13 22:16 Message generated for change (Tracker Item Submitted) made by patryks You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3108582&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mcs51(8051) target Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Patryk (patryks) Assigned to: Nobody/Anonymous (nobody) Summary: Warning 196 with "printf_fast" - some info Initial Comment: It seems I'm unable to edit original report, so created new. SDCC 3.0.0 vs. 2.9.0 - "warning 196: pointer target lost const qualifier" when using printf_tiny("Hello, world!"); Casting printf_tiny((__code char *)"Hello, World!"); didn't help (IMHO it should!). However adding const to printf_tiny() declaration helped: extern void printf_tiny(__code char *fmt, ...) _REENTRANT; extern void printf_tiny(__code const char *fmt, ...) _REENTRANT; SDCC : mcs51/gbz80/z80/ds390/pic16/pic14/TININative/ds400/hc08 3.0.0 #6037 (Oct31 2010) (MINGW32) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3108582&group_id=599 |