Re: not used warning from std/memory.e

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu