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

Compiler warnings in test-bson.c

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.6.1
    • 1.6.0
    • libbson
    • None
    • GCC 7 on GNU/Linux

    Description

      When building libbson-1.6.0, I can see compiler warnings like this :

          tests/test-bson.c:1709:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
              ASSERT (buf = bson_reserve_buffer (&stack_alloced, src.len));
      

      and yet another one about unused variable. Attached patch fixes it.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            ppisar Petr Pisar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: