#1702 Warning 196 with "printf_fast" - some info

closed-fixed
Maarten Brock
5
2013-05-25
2010-11-13
Patryk
No

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)

Discussion

  • Maarten Brock
    Maarten Brock
    2010-12-06

    Fixed in SDCC 3.0.1 #6074

     
  • Maarten Brock
    Maarten Brock
    2010-12-06

    • milestone: --> fixed
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed-fixed