From: Jeremy Harris Date: Mon, 24 Dec 2018 14:47:32 +0000 (+0000) Subject: Move -stc=c99 to CFLAGS restricted to only 4.next X-Git-Url: https://git.exim.org/buildfarm-client.git/commitdiff_plain/f7ec5ba1bbea7563ea9084bb2f67a260f0041d65 Move -stc=c99 to CFLAGS restricted to only 4.next --- diff --git a/build-farm.conf.template b/build-farm.conf.template index d2e4292..cb08834 100644 --- a/build-farm.conf.template +++ b/build-farm.conf.template @@ -169,8 +169,7 @@ our %conf =( # LDFLAGS => '-Wall' will create LDFLAGS+='-Wall' makefile_add =>{ # Show all warnings and errors - # Some platforms need the c99 setting enabled - CFLAGS => '-std=c99 -Wall -Wno-parentheses -Werror=format-security', + CFLAGS => '-Wall -Wno-parentheses -Werror=format-security', # Or enable debugging flags #CFLAGS => '-g -Wall', #LFLAGS => '-g', @@ -252,4 +251,11 @@ if ($branch eq 'global') # $conf{makefile_set}{SUPPORT_DANE} = ''; #} +# Some platforms need the c99 setting enabled for 4.next, which starts using more c99 syntax +if ($branch eq '4.next') +{ + $conf{makefile_add}{CFLAGS} .= ' -std=c99'; +} + + 1;