Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-377

clang 3.5 warning, dbclientcursor.h

    XMLWordPrintableJSON

Details

    Description

      Using the clang 3.5 compiler, the following warning is issued during compilation of the 26compat branch.

      While this may not be of immediate concern, it seems odd enough to report.

      clang++ -O3 -g -std=c+11 -stdlib=libc+ -I ../libs/ami/include -emit-llvm -c
      In file included from ../libs/ami/include/mongo/client/dbclient.h:40:
      In file included from ../libs/ami/include/mongo/client/connpool.h:22:
      In file included from ../libs/ami/include/mongo/client/dbclientinterface.h:1374:
      ../libs/ami/include/mongo/client/dbclientcursor.h:120:40: warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be
      assumed to always convert to true [-Wundefined-bool-conversion]
      bool isDead() const

      { return !this || cursorId == 0; }

      ^~~
      1 warning generated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alb@neptunesystems.com Allan Bazinet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: