Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3739

Deprecation warning in codegen/base.d

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.9.3
    • Fix Version/s: 0.10.0
    • Component/s: D - Library
    • Labels:
      None
    • Environment:

      dmd 2.070

      Description

      ../../lib/d/src/thrift/codegen/base.d(502): Deprecation: this is not an lvalue

      https://travis-ci.org/apache/thrift/jobs/113139459#L5997

      It's caused by passing this pointer to "ref" parameter of "readStruct" function.
      Making the parameter to auto ref resolves the problem.
      This should be OK because the readStruct function is for internal use only.

        Attachments

          Activity

            People

            • Assignee:
              nsuke Nobuaki Sukegawa
              Reporter:
              nsuke Nobuaki Sukegawa
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: