Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-1028

compile warning

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Resolved
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 20.0
    • Fix Version/s: None
    • Component/s: compiler
    • Labels:
      None

      Description

      hi, i am confused with this code,it keeps warning me this.
      t.erl:4: Warning: the result of the expression is ignored (suppress the warign by assinging the
      _ variable
      is that a bug?

      -module(t).
      -export([start/1]).
      start(Bin) ->
      _A = byte_size(Bin) - 1,
      false andalso _A.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            zseronc zseroncli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: