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

ShardRegistry triggers clang 3.7's Wpessimizing-move warning

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.1.9
    • Internal Code, Sharding
    • None
    • Fully Compatible
    • ALL
    • QuInt A (10/12/15)

    Description

      src/mongo/s/client/shard_registry.cpp:267:45: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
                  shardType.getName(), shardHost, std::move(_targeterFactory->create(shardHost)));
                                                  ^
      src/mongo/s/client/shard_registry.cpp:267:45: note: remove std::move call here
                  shardType.getName(), shardHost, std::move(_targeterFactory->create(shardHost)));
                                                  ^~~~~~~~~~                                   ~
      1 error generated.
      

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: