# HG changeset patch # User Matt Johnston # Date 1648621758 -28800 # Node ID e356093a6812b42953ddded437827ad3c37ff8aa # Parent 7ac3b6c380b18f3416254cea63c04856a78fb242 Add c89 build test diff -r 7ac3b6c380b1 -r e356093a6812 .github/workflows/build.yml --- a/.github/workflows/build.yml Wed Mar 30 14:28:59 2022 +0800 +++ b/.github/workflows/build.yml Wed Mar 30 14:29:18 2022 +0800 @@ -44,6 +44,12 @@ - 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 @@ apt: 'no' ranlib: ranlib -no_warning_for_no_symbols + # Check that debug code doesn't bitrot - name: DEBUG_TRACE localoptions: | #define DEBUG_TRACE 5