<div>Unused function warning</div><div>=====================================</div><div>data_conn_make_inet_link(SrcIP, SrcPort, DstIP, DstPort) -></div><div>    #inet_link{ src=#inet_src{ip=SrcIP, port=SrcPort}, dst=#inet_dst{ip=DstIP, port=DstPort}}.</div>
<div><br></div><div>I want to put this in a "common header," but not every single file which uses the header will use </div><div>this particular call.</div><div><br></div><div>It's old getting spammed with warnings about this.</div>
<div>It's poor to have to turn off warnings at a global level.</div><div><br></div><div>May I propose prepending something to suppress warning about it not being used?  Maybe </div><div>using a leading "-"?    or %ifdef/#ifdef#pragma-style preprocessor controls?  -quiet-include("file"). ?</div>
<div><br></div><div>-method()->  %% ignore "unused" warnings</div><div><br></div><div>I see some discussion of this back around 2008, but I don't see any traction on it since.  Anyone</div><div>know if this was ever implemented in any form?</div>
<div><br></div><div><br></div><div><br></div><div>"void" </div><div>=====================================</div><div>If I do not care about the return value of a method, can I do something to tell that to the compiler?</div>
<div>No reason to allocate return storage on the frame if I don't care about it anyway?  Or is this too trivial</div><div>in the scope of "Erlang copies everything everywhere" to be of consideration?</div><div>
<br></div><div>_method()->  %% don't allocate storage or worry about returns</div><div><br></div><div><br></div><div>Thanks!</div><div><br></div><div>-mox</div><div><br></div><div><br></div>