Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29328

IDL produces const-qualified return types on generated functions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.9
    • Affects Version/s: None
    • Component/s: Internal Client
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-06-19

      For example, oplog_entry.idl produces code that looks like this:

      const std::int64_t getVersion() const { return _version; }
      

      Coverity is flagging all of these with:
      CID 101615 (#1 of 1): Parse warning (PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE)
      1. useless_type_qualifier_on_return_type: type qualifier on return type is meaningless

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: