[CXX-2458] Avoid warnings when compiling with -Wfloat-equal Created: 25/Feb/22  Updated: 28/Oct/23  Resolved: 03/Mar/22

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.0

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

See https://github.com/mongodb/mongo-cxx-driver/pull/842 for the proposed change.



 Comments   
Comment by Githook User [ 03/Mar/22 ]

Author:

{'name': 'Ole Henrik Dahle', 'email': 'ole@dahle.no', 'username': 'oledahle'}

Message: CXX-2458 Avoid warnings when compiling with -Wfloat-equal (#842)

Added pragma statements to suppress -Wfloat-equal flag for this file, since double equality comparison is on purpose.

Co-authored-by: Ole Henrik Dahle <ole.henrik.dahle@indra.no>
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/9d53a3670e38eb899285203a2a3ebc0dddb6cb21

Generated at Wed Feb 07 22:05:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.