[SERVER-24120] Make link warnings fatal Created: 10/May/16  Updated: 04/Jan/17  Resolved: 03/Jun/16

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

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 1
Labels: bkp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Gantt Dependency
has to be done after WT-2629 Introduction of ppc64le crc32c assemb... Closed
Related
related to SERVER-24117 Mongo binaries ELF stack has become e... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.2
Sprint: Platforms 15 (06/03/16)
Participants:

 Description   

We should build with -Wl,--fatal-warnings so that linker warnings are escalated to errors. We should also see if there is a Windows equivalent.



 Comments   
Comment by Githook User [ 03/Jun/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-24120 Treat linker warnings as errors on binutils platforms
Branch: master
https://github.com/mongodb/mongo/commit/dd61c323913de91fd8d65a57324b9aa5079ff931

Comment by Eric Milkie [ 10/May/16 ]

Yes, on Windows the flag is the same for the compiler and the linker: /WX
We currently have many linker warnings on Windows, so we'd have to fix those first.

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