[SERVER-68350] Disable GCC warning for freeing in RecordId destructor Created: 27/Jul/22  Updated: 29/Oct/23  Resolved: 27/Jul/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Jordi Olivares Provencio Assignee: Jordi Olivares Provencio
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-08-08
Participants:
Linked BF Score: 70

 Description   

It seems that with more recent versions of GCC the RecordId destructor gives a false positive for freeing a non-heap pointer even though the pointer will only be set with valid data if the guard condition is valid.

We should disable the warning for now.



 Comments   
Comment by Githook User [ 27/Jul/22 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-68350 Disable GCC warning for freeing in RecordId destructor
Branch: master
https://github.com/mongodb/mongo/commit/e7d7dfccd104640be5f181238ea53464c042220a

Generated at Thu Feb 08 06:10:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.