Re: [fpc-pascal] Compiler Warning and Notices like unused variables etc.

2006-07-26 Thread Michael Van Canneyt
On Wed, 26 Jul 2006, Graeme Geldenhuys wrote: > > MyVariable:=MyVariable; // this is a workaround in rare cases. > > Can anybody that knowns the internals of FPC confirm if this will > create extra work/code for the compiler? It will. > I have been trying for a > long time to figure out a c

Re: [fpc-pascal] Compiler Warning and Notices like unused variables etc.

2006-07-26 Thread Vinzent Hoefler
On Wednesday 26 July 2006 12:49, Graeme Geldenhuys wrote: > > MyVariable:=MyVariable; // this is a workaround in rare cases. > > Can anybody that knowns the internals of FPC confirm if this will > create extra work/code for the compiler? It does create an assignment. At least with the fpc2.0.2

Re: [fpc-pascal] Compiler Warning and Notices like unused variables etc.

2006-07-26 Thread Graeme Geldenhuys
MyVariable:=MyVariable; // this is a workaround in rare cases. Can anybody that knowns the internals of FPC confirm if this will create extra work/code for the compiler? I have been trying for a long time to figure out a clean way of getting rid of some compiler warnings. Regards, Graeme.

[fpc-pascal] Compiler Warning and Notices like unused variables etc.

2006-07-26 Thread Jason P Sage
I just wanted to say I LOVE the fact that the compiler warns you of these mundane details. Personally, I don't consider my application at a good stopping point unless I can make all the warnings go away. Sometimes I even will put in (hopefully a low overhead thing when I do it) a meaningless com