startup_warnings_mongod.h missing #pragma once

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • ALL
    • Programmability 2025-09-01
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      All headers should have a pragma once directive.

      If a header is used in only one or two places it's easy to forget it.
      Would be nice to have a check for this.

      https://github.com/10gen/mongo/blob/master/src/mongo/db/startup_warnings_mongod.h

        1. add_pragma_once.py
          2 kB
          Billy Donahue

            Assignee:
            Billy Donahue
            Reporter:
            Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: