From: Darren Tucker Date: Mon, 26 Apr 2021 04:49:59 +0000 (+1000) Subject: Ensure we can still build with C89. X-Git-Tag: V_8_7_P1~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29e194a752359ebf85bf7fce100f23a0477fc4de;p=thirdparty%2Fopenssh-portable.git Ensure we can still build with C89. --- diff --git a/.github/configs b/.github/configs index 44b607a37..f6d39ed62 100755 --- a/.github/configs +++ b/.github/configs @@ -22,6 +22,12 @@ LIBCRYPTOFLAGS="" case "$config" in default|sol64) ;; + c89) + CC="gcc" + CFLAGS="-Wall -std=c89 -pedantic -Werror=vla" + CONFIGFLAGS="--without-openssl --without-zlib" + TEST_TARGET=t-exec + ;; kitchensink) CONFIGFLAGS="--with-kerberos5 --with-libedit --with-pam" CONFIGFLAGS="${CONFIGFLAGS} --with-security-key-builtin --with-selinux" diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index c0a0ac812..0dab607ed 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -23,6 +23,7 @@ jobs: - { os: ubuntu-20.04, configs: valgrind-3 } - { os: ubuntu-20.04, configs: valgrind-4 } - { os: ubuntu-20.04, configs: valgrind-unit } + - { os: ubuntu-20.04, configs: c89 } - { os: ubuntu-20.04, configs: pam } - { os: ubuntu-20.04, configs: kitchensink } - { os: ubuntu-20.04, configs: hardenedmalloc }