[CDRIVER-2927] Build on Evergreen with -Werror Created: 15/Jan/19  Updated: 15/Apr/22  Resolved: 15/Apr/22

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

Type: Task Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: evergreen
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CDRIVER-2733

 Description   

The debug-compile-with-warnings task compiles with -Werror using GCC 5.4. But Travis compiles with -Werror using clang. Many times I've had a passing evergreen patch build, push to master, then find out I broke the Travis build because clang produces different warnings.

Ideally, we should compile with -Werror everywhere. If that is not reasonable, we should at least build with -Werror using clang, so Evergreen fails on the same warnings that Travis does.



 Comments   
Comment by Kevin Albertson [ 14/Apr/20 ]

If we can enable -Werror everywhere, we can remove the debug-compile-with-warnings task.

Comment by Kevin Albertson [ 27/Feb/19 ]

Work remains to do so on other variants.

Comment by Githook User [ 27/Feb/19 ]

Author:

{'name': 'Kevin Albertson', 'username': 'kevinAlbs', 'email': 'kevin.albertson@mongodb.com'}

Message: CDRIVER-2927 add -Werror to make-release-archive
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/9a656625f63a4d7666aeb6dc1a4cd59b0c169695

Generated at Wed Feb 07 21:16:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.