summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-03-16 22:54:34 (GMT)
committerThomas Haller <thaller@redhat.com>2022-03-16 22:54:57 (GMT)
commit2782ed3694a2c485da52053dccbe79418ebea8f9 (patch)
tree7e3ac24e2ad043d81fcb1bca5d772c276b25e696 /.github
parentaf59b9a77dd6b6b7cdacdbb700bcf757679969e9 (diff)
downloadlibnl-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.yml2
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