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

deprecate MONGO_COMPILER_VARIABLE_UNUSED in favor of C++ 17 attributes maybe_unused

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Trivial - P5 Trivial - P5
    • 5.0.0-rc0
    • None
    • None
    • Fully Compatible
    • Execution Team 2021-05-17
    • 1

    Description

      We have been using the C++ 17 attribute maybe_unused in the server code base for a while now (earliest detected usage was in SERVER-40312 in 4.2). It may be time to retire the MONGO_COMPILER_VARIABLE_UNUSED macro.

      https://github.com/mongodb/mongo/search?q=maybe_unused&type=Code

      https://github.com/mongodb/mongo/search?q=MONGO_COMPILER_VARIABLE_UNUSED&type=Code

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            benety.goh@mongodb.com Benety Goh
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: