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

clang-tidy error in fetcher_test.cpp

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2019-10-07
    • 50

    Description

      [2019/09/27 14:52:31.512] /data/mci/f7b2a6acdc3d01ded6cc8f0f20c1760d/src/src/mongo/client/fetcher_test.cpp:256:5: error: object destroyed immediately after creation; did you mean to name the object? [bugprone-unused-raii,-warnings-as-errors]
       [2019/09/27 14:52:31.512]     Fetcher(&executor,
       [2019/09/27 14:52:31.512]     ^      ~
       [2019/09/27 14:52:31.512]             give_me_a_name
       [2019/09/27 14:52:31.512] /data/mci/f7b2a6acdc3d01ded6cc8f0f20c1760d/src/src/mongo/client/fetcher_test.cpp:262:5: error: object destroyed immediately after creation; did you mean to name the object? [bugprone-unused-raii,-warnings-as-errors]
       [2019/09/27 14:52:31.512]     Fetcher(&executor, source, "db", BSON("listCollections" << 1), unreachableCallback);
       [2019/09/27 14:52:31.512]     ^      ~
       [2019/09/27 14:52:31.512]             give_me_a_name
      

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: