Loading ...
Sorry, an error occurred while loading the content.

Warning upon unused module

Expand Messages
  • Francois Berenger
    Hello, Is it possible to have a compilation warning in case a module declared in a file is unused? -- Best regards, Francois Berenger.
    Message 1 of 4 , Apr 1, 2014
    • 0 Attachment
      Hello,

      Is it possible to have a compilation warning
      in case a module declared in a file is unused?

      --
      Best regards,
      Francois Berenger.
    • rixed
      -[ Wed, Apr 02, 2014 at 02:54:03PM +0900, Francois Berenger ]---- ... Declared? If declared=opened, then -w A will do.
      Message 2 of 4 , Apr 2, 2014
      • 0 Attachment
        -[ Wed, Apr 02, 2014 at 02:54:03PM +0900, Francois Berenger ]----
        > Is it possible to have a compilation warning
        > in case a module declared in a file is unused?

        Declared?
        If declared=opened, then '-w A' will do.
      • Francois Berenger
        ... I only extremely rarely open modules. ... module A = BatArray module AC = Autocorr module S = BatString module Feat = Feature module HT =
        Message 3 of 4 , Apr 2, 2014
        • 0 Attachment
          On 04/02/2014 06:33 PM, rixed@... wrote:
          > -[ Wed, Apr 02, 2014 at 02:54:03PM +0900, Francois Berenger ]----
          >> Is it possible to have a compilation warning
          >> in case a module declared in a file is unused?
          >
          > Declared?
          > If declared=opened, then '-w A' will do.

          I only extremely rarely open modules.
          But, I have some lines on top of my file like:

          ---
          module A = BatArray
          module AC = Autocorr
          module S = BatString
          module Feat = Feature
          module HT = BatHashtbl
          module L = BatList
          module MU = My_utils
          module Mol = Molecule
          module Mol2 = Mol2_parser
          module Pl = Pl_parser
          module Pqr = Pqr_parser
          module V3 = Vector3
          ---

          I was interested in knowing if one such a line
          has become unnecessary at some point.

          --
          Best regards,
          Francois Berenger.
        • rixed
          -[ Thu, Apr 03, 2014 at 10:46:12AM +0900, Francois Berenger ]---- ... Browsing through the various warning options there does not seem to be anything like that
          Message 4 of 4 , Apr 3, 2014
          • 0 Attachment
            -[ Thu, Apr 03, 2014 at 10:46:12AM +0900, Francois Berenger ]----
            > I only extremely rarely open modules.
            > But, I have some lines on top of my file like:
            >
            > ---
            > module A = BatArray
            > module AC = Autocorr
            > module S = BatString
            > module Feat = Feature
            > module HT = BatHashtbl
            > module L = BatList
            > module MU = My_utils
            > module Mol = Molecule
            > module Mol2 = Mol2_parser
            > module Pl = Pl_parser
            > module Pqr = Pqr_parser
            > module V3 = Vector3
            > ---
            >
            > I was interested in knowing if one such a line
            > has become unnecessary at some point.

            Browsing through the various warning options there does not seem to
            be anything like that at the moment.
            You should open a feature request.
          Your message has been successfully submitted and would be delivered to recipients shortly.