'not all control paths return a value' warning in non-MMAP V1 implementations of '::writingPtr'

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • 3.2.3, 3.3.0
    • Affects Version/s: None
    • Component/s: Storage
    • Fully Compatible
    • ALL
    • Sharding E (01/08/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Non-MMAP V1 implementations of the writingPtr method all report warnings because of the usage of invariant:

      e:\workspace\mongo\src\mongo\db\storage\ephemeral_for_test\ephemeral_for_test_recovery_unit.h(60) : warning C4715: 'mongo::EphemeralForTestRecoveryUnit::writingPtr' : not all control paths return a value
      ...
      e:\workspace\mongo\src\mongo\db\storage\wiredtiger\wiredtiger_recovery_unit.h(73) : warning C4715: 'mongo::WiredTigerRecoveryUnit::writingPtr' : not all control paths return a value
      

              Assignee:
              Kaloian Manassiev
              Reporter:
              Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: