[SERVER-40800] -Wno-invalid-offsetof is not valid for C Created: 24/Apr/19  Updated: 29/Oct/23  Resolved: 07/May/19

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 4.1.11

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Mathew Robinson (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6, v3.4
Steps To Reproduce:

Run a full build with Clang.

Sprint: Dev Tools 2019-05-20
Participants:

 Description   

cc1: warning: command line option ‘-Wno-invalid-offsetof’ is valid for C++/ObjC++ but not for C

 

It appears in third_party/SConscript we put this warning in CCFLAGS for some reason.



 Comments   
Comment by Githook User [ 07/May/19 ]

Author:

{'email': 'chasinglogic@gmail.com', 'name': 'Mathew Robinson', 'username': 'chasinglogic'}

Message: SERVER-40800 Move -Wno-invalid-offsetof to CXXFLAGS
Branch: master
https://github.com/mongodb/mongo/commit/f0f26c1dfc377ba471e75988b09a2385dbf42609

Generated at Thu Feb 08 04:56:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.