forum.gifForum - General - Topic #113

 

Forum - Forum
General - General


closed by PPA   2010.06.28   08:51 AM  Topic # 113  Warning about unused symbols with ASM blocks

2010.02.23 2:50 PM
by stefanhanoi



visitor

Join Date 2010.01.19

Location: Hanoi, Vietnam


Hi again,I declare some variables in the PMP part of an unit, so that they are accessible from PMP in the main program, but then use them in that unit only in ASM blocks.The compiler gives warnings about "Symbol XXX is declared but never used".Basically acceptable, since it should not look into the ASM...END; blocks.
Maybe it nevertheless could look for unit@XXX and unit@proc@XXX and suppress the warning?Not too critical. If I have program space available, I can get rid of the warnings with a short no-use initialization like XXX := 0;Again, a strange thing:
I have two variables declared one after each other, both are used only within ASM blocks. I get a warning about the first one, but not about the second one. Go figure.Cheers,Stefan
 topic closed  Top
Answer n° 1
--------
2010.02.23 8:48 PM
by PPA

Porting to 64 bits PICs is a piece of cake...

Administrator
175 messages

Join Date 2008.12.21

Location: France, IDF

For now, PMP cannot analyze any part of an asm block.

You can always disable the concerned warning with {$W n off}, where n is the warning number given in the warning message (35 in this case).

Fot the unused variables, it must be unit wide since the check is made at the very last 'end'.

For the two variables case, I have to investigate more.

Regards,


PMP team leader

Write to PPA   Web site PPA closed by PPA   2010.06.28   08:51 AM  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 




Sentence to think about :     
^ Top ^