[erlang-questions] Wrong compilation warning
Maxim Treskin
zerthurd@REDACTED
Wed Feb 6 12:38:33 CET 2008
Hello,
During compilation of source file, which contains following code:
<pre>
-record(ctx_ids, {
used = [],
free = []
}).
-record(context, {
ctx_id,
term_ids
}).
-record(core_state, {
ctx_ids = [] :: [#ctx_ids{}],
contexts = [] :: [#context{}]
}).
</pre>
I see a warning:
<pre>
Warning: record context is unused
</pre>
Record #context is unused in code, except in definition of record
#core_state.
May be is it compilation bug?
Thank you.
--
Maxim Treskin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080206/854f0eaa/attachment.htm>
More information about the erlang-questions
mailing list