Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-768

Build warning for possibly uninitialized value in collection test

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.2-beta0
    • Affects Version/s: 1.2-beta0
    • Component/s: libmongoc
    • Labels:
      None

      Noticed while building with -Werror:

      tests/test-mongoc-collection.c: In function ‘_test_legacy_bulk_insert’:
      tests/test-mongoc-collection.c:458:10: warning: ‘has_oversized’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             if (has_oversized && !continue_on_err) {
                ^
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: