Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5332

warning: dereferencing type-punned pointer will break strict-aliasing rules

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      de20dd200870367e3f9000c9a6b74fed5e8fa402 from github
    • ALL

      In file included from /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/../../db/jsobj.h:33:0,
      from /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/../../db/cmdline.h:20,
      from /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/hostandport.h:21,
      from /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/message.h:22,
      from /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/dbclient.h:24,
      from src/Doc.hh:17,
      from src/crawler.cc:41:
      /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/../../db/../util/optime.h: In member function 'long long unsigned int mongo::OpTime::asDate() const':
      /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/../../db/../util/optime.h:97:69: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
      /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/../../db/../util/optime.h: In member function 'long long int mongo::OpTime::asLL() const':
      /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/../../db/../util/optime.h:100:60: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
      In file included from /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/dbclient.h:24:0,
      from src/Doc.hh:17,
      from src/crawler.cc:41:
      /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/message.h: In member function 'int& mongo::MsgData::dataAsInt()':
      /home/piotr/devel/mycelium/3rd_party/mongodb/src/mongo/client/../util/net/message.h:120:35: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
      src/crawler.cc: At global scope:

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            piotr Pedro Larroy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: