diff options
author | Thomas Haller <thaller@redhat.com> | 2022-03-16 22:54:34 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-03-16 22:54:57 (GMT) |
commit | 2782ed3694a2c485da52053dccbe79418ebea8f9 (patch) | |
tree | 7e3ac24e2ad043d81fcb1bca5d772c276b25e696 /.github | |
parent | af59b9a77dd6b6b7cdacdbb700bcf757679969e9 (diff) | |
download | libnl-2782ed3694a2c485da52053dccbe79418ebea8f9.zip libnl-2782ed3694a2c485da52053dccbe79418ebea8f9.tar.gz libnl-2782ed3694a2c485da52053dccbe79418ebea8f9.tar.bz2 |
github: build tests with "-std=gnu11"
Libnl3 is C11. Not sure this was defined somewhere, but at this point,
it seems a safe requirement to make.
Also, we make use of gcc-isms (typeof(), attribute(cleanup()),
expression statements). Both gcc and clang support that. These
C extensions are too good to miss.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e456dc..4a9b675 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: run: | set -x - CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla" + CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla -std=gnu11" if [ "$CC" = "clang" ]; then CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function" fi |