Coverity analysis defect 72276: Side effect in assertion

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.0-beta0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Hannes Magnusson (Inactive)
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: