summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2022-03-30 14:29:18 +0800
committerMatt Johnston <matt@ucc.asn.au>2022-03-30 14:29:18 +0800
commitdd5c1cacb137d7434a9a1d665abeda16cded83b0 (patch)
treee5292ff72a5ace49079bad7b10d95984a7619206
parent592ad09684a6cb9588d4ee4c1dc6f629a8d21ac8 (diff)
downloaddropbear-dd5c1cacb137d7434a9a1d665abeda16cded83b0.tar.gz
Add c89 build test
-rw-r--r--.github/workflows/build.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 354d37d..89db61e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -44,6 +44,12 @@ jobs:
- name: linux clang
cc: clang
+ # Some platforms only have old compilers, we try to keep
+ # compatibilty. For some reason -std=c89 doesn't enforce
+ # early declarations so we specify it anyway.
+ - name: c89
+ extracflags: -std=c89 -Wdeclaration-after-statement
+
- name: macos 10.15
os: macos-10.15
cc: clang
@@ -63,6 +69,7 @@ jobs:
apt: 'no'
ranlib: ranlib -no_warning_for_no_symbols
+ # Check that debug code doesn't bitrot
- name: DEBUG_TRACE
localoptions: |
#define DEBUG_TRACE 5