Re: not used warning from std/memory.e
- Posted by DerekParnell (admin) Jul 09, 2009
- 921 views
SDPringle said...
I am perplexed by a 'not used' warning concerning the constant M_FREE in std/memory.e. M_FREE is declared and set on line 17 and is used on line 300. Why should I see this error?
Shawn Pringle
Because its only used if DATA_EXECUTE is defined. However, which is the correct name "DATA_EXECUTE" or "EXECUTE_DATA" because you use both in the code.
The correct usage needs to be ...
constant M_ALLOC = 16 ifdef EXECUTE_DATA then constant M_FREE = 17 end ifdef