[CXX-777] Evergreen builds should use -Wall and -Werror Created: 15/Dec/15  Updated: 11/Jan/16  Resolved: 10/Jan/16

Status: Closed
Project: C++ Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.0.0-rc0

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

Issue Links:
Depends
depends on CXX-752 identical class names, method names, ... Closed
Epic Link: C++11 Driver MongoDB 3.2

 Description   

We have had a few instances of warnings creeping in. We should enable warnings and warnings as errors. Ideally, this would be an option to CMake (defaults to ON), though we should think about how to achieve it.



 Comments   
Comment by Githook User [ 10/Jan/16 ]

Author:

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

Message: CXX-777 Build with Wall, Wextra and Werror to hold the line on warnings

Note that we currently need -Wno-attributes to avoid being overwhelmed by warnings
generated by MNMLSTC core.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/d1583f612a9cd458553fb19a74dad3173901d880

Comment by Githook User [ 10/Jan/16 ]

Author:

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

Message: CXX-777 Fix some unused parameter warnings
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/2ea7d5a08f3d05775f0bd7c8822b5b02f5ac47d4

Comment by Andrew Morrow (Inactive) [ 03/Jan/16 ]

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

Comment by Andrew Morrow (Inactive) [ 03/Jan/16 ]

At least one warning is the result of the issue in CXX-790, so we will need to do that first.

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