#1766 -:0: warning 85: […]unreferenced local va

closed-works-for-me
None
5
2011-02-23
2011-02-22
No

I get the following from sdcc:

-:0: warning 85: in function dutycycle unreferenced local variable : 'current_off_time'

and a return value of 1! Either this is just a warning, then sdcc should return 0, or this or something else occouring is an error, then I should get an error message.

To reproduce: Download current contiki from cvs using

cvs -z3 -d:pserver:anonymous@contiki.cvs.sourceforge.net:/cvsroot/contiki co contiki-2.x

in the contiki-2.x/examples/hello-world directory invoke sdcc:

sdcc -DCONTIKI=1 -DCONTIKI_TARGET_PC_6001=1 -DMEMORY_32K -DARCH_PC6001 -DCTK_NORMAL --std-c99 -mz80 --opt-code-size --peep-file ../../cpu/z80/z80peephole.def --fverbose-asm -DAUTOSTART_ENABLE=1 -I. -I../../platform/pc-6001/. -I../../platform/pc-6001/ctk -I../../platform/pc-6001/dev -I../../platform/pc-6001/loader -I../../cpu/z80/. -I../../cpu/z80/dev -I../../cpu/z80/lib -I../../cpu/z80/loader -I../../core/dev -I../../core/lib -I../../core/net -I../../core/net/mac -I../../core/net/rime -I../../core/net/rpl -I../../core/sys -I../../core/cfs -I../../core/ctk -I../../core/lib/ctk -I../../core/loader -I../../core/. -c ../../core/net/mac/lpp.c -o obj_pc-6001/lpp.rel

I encounter the problem in sdcc rev #6226, both trunk and optralloc.

Philipp

Philipp

Discussion

    • assigned_to: nobody --> spth
    • status: open --> closed-works-for-me
     
  • After a clean checkout of sdcc I now get error messages in both trunk and optralloc.

    Philipp