@@ -114,8 +114,8 @@ test-lin-rel:
114114 _R_CHECK_RD_CHECKRD_MINLEVEL_ : " -Inf"
115115 script :
116116 - *install-deps
117- - echo 'CFLAGS=-g -O3 -flto=auto -fno-common -fopenmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' > ~/.R/Makevars
118- - echo 'CXXFLAGS=-g -O3 -flto=auto -fno-common -fopenmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' >> ~/.R/Makevars
117+ - echo 'CFLAGS=-g -O3 -flto=auto -fno-common -fopenmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' > ~/.R/Makevars
118+ - echo 'CXXFLAGS=-g -O3 -flto=auto -fno-common -fopenmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' >> ~/.R/Makevars
119119 - echo '_R_CHECK_COMPILATION_FLAGS_KNOWN_=-Wvla' >> ~/.Renviron
120120 - |
121121 res1=0; R CMD check --as-cran $(ls -1t data.table_*.tar.gz | head -n 1) || res1=$?
@@ -135,8 +135,8 @@ test-lin-rel-vanilla:
135135 variables :
136136 _R_CHECK_COMPILATION_FLAGS_KNOWN_ : " -Wvla"
137137 script :
138- - echo 'CFLAGS=-g -O0 -fno-openmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' > ~/.R/Makevars
139- - echo 'CXXFLAGS=-g -O0 -fno-openmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' >> ~/.R/Makevars
138+ - echo 'CFLAGS=-g -O0 -fno-openmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' > ~/.R/Makevars
139+ - echo 'CXXFLAGS=-g -O0 -fno-openmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' >> ~/.R/Makevars
140140 - R CMD check --no-manual --ignore-vignettes $(ls -1t data.table_*.tar.gz | head -n 1)
141141
142142# # R-release on Linux
@@ -152,8 +152,8 @@ test-lin-rel-cran:
152152 _R_CHECK_PKG_SIZES_THRESHOLD_ : " 10" # # MiB 'checking installed package size' NOTE increased due to po
153153 script :
154154 - *install-deps
155- - echo 'CFLAGS=-g -O2 -fopenmp -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' > ~/.R/Makevars
156- - echo 'CXXFLAGS=-g -O2 -fopenmp -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' >> ~/.R/Makevars
155+ - echo 'CFLAGS=-g -O2 -fopenmp -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' > ~/.R/Makevars
156+ - echo 'CXXFLAGS=-g -O2 -fopenmp -Wall -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' >> ~/.R/Makevars
157157 - |
158158 res1=0; R CMD check --as-cran $(ls -1t data.table_*.tar.gz | head -n 1) || res1=$?
159159 res2=0; Rscript -e 'l=tail(readLines("data.table.Rcheck/00check.log"), 1L); if (!identical(l, "Status: 1 NOTE")) stop("Last line of ", shQuote("00check.log"), " is not ", shQuote("Status: 1 NOTE"), " (non-API) but ", shQuote(l))' || res2=$?
@@ -173,8 +173,8 @@ test-lin-dev-gcc-strict-cran:
173173 _R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_ : " FALSE" # # detects S3 method lookup found on search path #4777
174174 _R_S3_METHOD_LOOKUP_REPORT_SEARCH_PATH_USES_ : " TRUE"
175175 script :
176- - echo 'CFLAGS=-g -O2 -flto=auto -fno-common -fopenmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 -D_POSIX_C_SOURCE=200809L ' > ~/.R/Makevars
177- - echo 'CXXFLAGS=-g -O2 -flto=auto -fno-common -fopenmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 -D_POSIX_C_SOURCE=200809L ' >> ~/.R/Makevars
176+ - echo 'CFLAGS=-g -O2 -flto=auto -fno-common -fopenmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' > ~/.R/Makevars
177+ - echo 'CXXFLAGS=-g -O2 -flto=auto -fno-common -fopenmp -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' >> ~/.R/Makevars
178178 - *install-deps
179179 - R CMD check --as-cran $(ls -1t data.table_*.tar.gz | head -n 1)
180180 - (! grep "warning:" data.table.Rcheck/00install.out)
@@ -195,8 +195,8 @@ test-lin-dev-clang-cran:
195195 _R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_ : " FALSE"
196196 _R_S3_METHOD_LOOKUP_REPORT_SEARCH_PATH_USES_ : " TRUE"
197197 script :
198- - echo 'CFLAGS=-g -O2 -fno-common -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' > ~/.R/Makevars
199- - echo 'CXXFLAGS=-g -O2 -fno-common -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2' >> ~/.R/Makevars
198+ - echo 'CFLAGS=-g -O2 -fno-common -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' > ~/.R/Makevars
199+ - echo 'CXXFLAGS=-g -O2 -fno-common -Wall -Wvla -pedantic -fstack-protector-strong -D_FORTIFY_SOURCE=2 --std=c99 ' >> ~/.R/Makevars
200200 - *install-deps
201201 - clang-tidy -extra-arg=-I/usr/local/lib/R/include -checks='readability-inconsistent-declaration-parameter' src/*.c -- -std=c99
202202 - R CMD check --as-cran $(ls -1t data.table_*.tar.gz | head -n 1)
0 commit comments