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

Compiler warning maybe-uninitialized

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mingw
    • Labels:
      None

      Description

      C:/Rtools/mingw_32/bin/gcc  -I"c:/R/include" -DNDEBUG -I../windows/openssl-1.0.2h/include -I../windows/libsasl-2.1.26/include -I. -Iyajl -Ibson -Imongoc -DLIBSASL_EXPORTS -DBSON_COMPILATION -DMONGOC_COMPILATION -DMONGOC_HAVE_SASL_CLIENT_DONE -D__USE_MINGW_ANSI_STDIO    -I"d:/Compiler/gcc-4.9.3/local330/include"  -Wno-unused-value -Wno-implicit-function-declaration   -O3 -Wall  -std=gnu99 -mtune=core2 -c bson/bson-iso8601.c -o bson/bson-iso8601.o
      bson/bson-iso8601.c: In function '_bson_iso8601_date_parse':
      bson/bson-iso8601.c:227:20: warning: 'sec_ptr' may be used uninitialized in this function [-Wmaybe-uninitialized]
          if (sec_len && !parse_num (sec_ptr, sec_len, 2, 0, 60, &sec)) {
                          ^
      bson/bson-iso8601.c:273:31: warning: 'millis_ptr' may be used uninitialized in this function [-Wmaybe-uninitialized]
                millis += (millis_ptr[millis_len - i] - '0') * magnitude;
                                     ^
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bjori Hannes Magnusson
              Reporter:
              Jeroenooms Jeroen Ooms [X] (Inactive)
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: