[m-rev.] for review: make --warn-unused-imports the default

Zoltan Somogyi zoltan.somogyi at runbox.com
Thu Jan 19 07:26:20 AEDT 2017


The diff is trivial; I am asking for opinions on the design decision.

In some rare cases, an import is needed only in some circumstances
(such as grades), and the compiler generates a unused import warning
for it in other circumstances. If this happens, we can always work around
the problem by adding --no-warn-unused-imports to the module's
entry in Mercury.options while (if possible) teaching the compiler
not to generate spurious warnings in such circumstances.

Zoltan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Log.wui
Type: application/octet-stream
Size: 452 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20170119/5df7d41d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DIFF.wui
Type: application/octet-stream
Size: 3741 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20170119/5df7d41d/attachment-0001.obj>


More information about the reviews mailing list