[CXX-49] Fix strict aliasing warnings so that headers are useable for all consumers Created: 18/Feb/14  Updated: 23/Oct/14  Resolved: 03/Oct/14

Status: Closed
Project: C++ Driver
Component/s: Implementation, Portability
Affects Version/s: None
Fix Version/s: legacy-1.0.0-rc1

Type: Improvement Priority: Critical - P2
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: legacy-cxx
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CXX-106 MsgData's cast from char[4] to int* l... Closed

 Description   

The BSON library in the driver currently assumes that it is being compiled with -fno-strict-aliasing. However several of the aliasing violations are in headers, which means that they inflict the same penalty on consumers of the library. We should fix the strict aliasing warnings so that clients can consume the library without needing special flags.



 Comments   
Comment by Andrew Morrow (Inactive) [ 01/Oct/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/171

Generated at Wed Feb 07 21:58:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.