]> git.ipfire.org Git - thirdparty/util-linux.git/commit
build: use -std=c99 and -std=c++11 by default
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 30 Nov 2023 22:24:37 +0000 (23:24 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 1 Dec 2023 08:00:06 +0000 (09:00 +0100)
commit6240e4458cdf5a17c7b795def33b81cb5a987aed
treebeb8f1ebed6673ca0c494eabc5e163ae4d1802ad
parent7bf1f1090f9cdc18f775e0d65d713c1ecfcf6726
build: use -std=c99 and -std=c++11 by default

Relying on the compiler default is problematic:

* New constructs may be introduced accidentally that break backwards
  compatibility.
* Older compilers may default to a more restricted standard than the
  codebase is actually developed with.

Explicitly select C99 (and C++11 for the fuzzing part).

Autotools does not want to default to C99, so set it explcitly during
CI.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
.github/workflows/cibuild.sh
meson.build