Add c89 build test

This commit is contained in:
Matt Johnston 2022-03-30 14:29:18 +08:00
parent 02a8c6cadd
commit 82bff01242

View File

@ -44,6 +44,12 @@ jobs:
- name: linux clang - name: linux clang
cc: 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 - name: macos 10.15
os: macos-10.15 os: macos-10.15
cc: clang cc: clang
@ -63,6 +69,7 @@ jobs:
apt: 'no' apt: 'no'
ranlib: ranlib -no_warning_for_no_symbols ranlib: ranlib -no_warning_for_no_symbols
# Check that debug code doesn't bitrot
- name: DEBUG_TRACE - name: DEBUG_TRACE
localoptions: | localoptions: |
#define DEBUG_TRACE 5 #define DEBUG_TRACE 5