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

Coverity analysis defect 72276: Side effect in assertion

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-beta0
    • Affects Version/s: None
    • Component/s: None
    • None

      Assertion contains an operation with a side effect

      Defect 72276 (STATIC_C)
      Checker ASSERT_SIDE_EFFECT (subcategory none)
      File: /tests/test-bulk.c
      Function test_bulk_new
      /tests/test-bulk.c, line: 2370
      Assignment "error.domain = MONGOC_ERROR_CLIENT" has a side effect. This code will work differently in a non-debug build.

             assert (error.domain = MONGOC_ERROR_CLIENT);
      

      File: /tests/test-bulk.c
      Function test_bulk_new
      /tests/test-bulk.c, line: 2376
      Assignment "error.domain = MONGOC_ERROR_CLIENT" has a side effect. This code will work differently in a non-debug build.

             assert (error.domain = MONGOC_ERROR_CLIENT);
      

      File: /tests/test-bulk.c
      Function test_bulk_new
      /tests/test-bulk.c, line: 2382
      Assignment "error.domain = MONGOC_ERROR_CLIENT" has a side effect. This code will work differently in a non-debug build.

             assert (error.domain = MONGOC_ERROR_CLIENT);
      

      File: /tests/test-bulk.c
      Function test_bulk_new
      /tests/test-bulk.c, line: 2388
      Assignment "error.domain = MONGOC_ERROR_CLIENT" has a side effect. This code will work differently in a non-debug build.

             assert (error.domain = MONGOC_ERROR_CLIENT);
      

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: