]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Ensure we can still build with C89.
authorDarren Tucker <dtucker@dtucker.net>
Mon, 26 Apr 2021 04:49:59 +0000 (14:49 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 26 Apr 2021 04:50:58 +0000 (14:50 +1000)
.github/configs
.github/workflows/c-cpp.yml

index 44b607a37ab170bc2e83d124f3a80804c2d30313..f6d39ed62425f88f32c60adc48f41bf425778f48 100755 (executable)
@@ -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"
index c0a0ac812098cbcd458b22de92ad344e9730024c..0dab607ed980bd1d1ebf72afd9e94e6662455940 100644 (file)
@@ -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 }