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

implicit declaration of function ‘strcasecmp’

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.6.0
    • 1.5.0
    • None
    • None

    Description

      [2016/11/16 17:03:52.703] tests/test-mongoc-topology.c: In function ‘auto_ping’:
      [2016/11/16 17:03:52.703] tests/test-mongoc-topology.c:775:4: error: implicit declaration of function ‘strcasecmp’ [-Werror=implicit-function-declaration]
      [2016/11/16 17:03:52.703]     if (!request->is_command || strcasecmp (request->command_name, "ping")) {
      [2016/11/16 17:03:52.703]     ^
      

      the mongoc-util-private.h has helper for windows for strcasecmp, but its not sufficient to just include that header since it doesn't currently include strings.h

      Attachments

        Activity

          People

            bjori Hannes Magnusson
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: