Skip to content

build: enforce C11 as minimum compiler standard#617

Open
hugo-hur wants to merge 1 commit into
LinearTapeFileSystem:mainfrom
hugo-hur:enforce-c11-build
Open

build: enforce C11 as minimum compiler standard#617
hugo-hur wants to merge 1 commit into
LinearTapeFileSystem:mainfrom
hugo-hur:enforce-c11-build

Conversation

@hugo-hur

@hugo-hur hugo-hur commented Jun 14, 2026

Copy link
Copy Markdown

Replace obsolete AC_PROG_CC_C99 with AC_PROG_CC (which auto-selects the newest available standard: C17 on GCC 8+, C11 on GCC 4.9-7) and add an AC_COMPILE_IFELSE gate that aborts configure if STDC_VERSION < 201112L.

Description

Makes C11 or newer a hard build requirement in line with the project coding guidelines ("C11 recommended, C99 acceptable") and enables use of _Static_assert, _Noreturn, and inline functions without preprocessor guards.

Type of change

  • This change might need a documentation update (the C11 compiler is actually a requirement now)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have confirmed my fix is effective or that my feature works

Replace obsolete AC_PROG_CC_C99 with AC_PROG_CC (which auto-selects the
newest available standard: C17 on GCC 8+, C11 on GCC 4.9-7) and add an
AC_COMPILE_IFELSE gate that aborts configure if __STDC_VERSION__ < 201112L.
Makes C11 or newer a hard build requirement in line with the project coding
guidelines ("C11 recommended, C99 acceptable") and enables use of _Static_assert,
_Noreturn, and inline functions without preprocessor guards.
@vandelvan vandelvan requested review from XV02, madjesc and syaoraang June 15, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant