[CDRIVER-4136] Bump the minimum compilation standard from C89 to C99 Created: 19/Aug/21  Updated: 28/Oct/23  Resolved: 20/Jun/23

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

Type: Improvement Priority: Unknown
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: size-small
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2022-12-12 at 7.14.33 PM.png    
Issue Links:
Related
related to CDRIVER-4470 mongoc 1.23.0 compile tests require c... Closed
related to CDRIVER-4479 Drop support for Visual Studio 2013 Backlog
related to PHPC-2270 Define constants for POSIX features a... Closed
related to CDRIVER-4521 Remove C89 compatibility macros in bs... Closed
related to CDRIVER-4655 Add support for C17/C18 standard Closed
is related to CDRIVER-1314 Support c89 Closed
Quarter: FY24Q1

 Description   

Scope

  • Remove the debug-compile-c89 task.
  • Document that the minimum compiler requirement is to have a compiler that supports C99 or higher.

Motivation
Using C99 features may help increase development velocity, and will reduce the variants we test compilation on.



 Comments   
Comment by Kevin Albertson [ 20/Jun/23 ]

Documenting that C89 has been dropped and C99 is the new default tested standard will be done in the NEWS of the 1.24.0 release.

Comment by Githook User [ 02/Nov/22 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CDRIVER-4136 Use C99 as default C standard without requiring explicit CMake config variables (#1138)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8e57f156a593c914f2dadade27a5a895268d7074

Comment by Githook User [ 02/Aug/22 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CDRIVER-4136 Update cmd scripts to use strict C99 via CMake config vars (#1086)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8dd30ac6882276d15c961504827360de71ed75e2

Comment by Githook User [ 15/Jul/22 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: Reducing Warnings - Compile with C99 on Evergreen by default (#1067)

  • CDRIVER-4136 Use -std=c99 by default for all compilation on Evergreen
  • Fix compatiblity issues with glibc versions 2.19 and earlier
Comment by Githook User [ 06/Apr/22 ]

Author:

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

Message: CDRIVER-4136 Drop debug-compile-c89 task (#962)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/24e3ee458e772e9c4d92ce8b2b92192f03fc9326

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