# probably always fail
allow_failures: true
skip_notifications: true
- git_submodule_script:
- - git submodule init -- opentelemetry-proto
- - git submodule update -- opentelemetry-proto
- configure_script:
- - ./build.sh
- - clang --version
- - >
- ./configure CC=clang CXX=clang++
- $DEFAULT_CONFIG_OPTS
- CFLAGS='-gdwarf-4 -Wall
+ env:
+ VALGRIND_OPTS: "--errors-for-leak-kinds=definite"
+ CFLAGS: >-
+ -gdwarf-4
-Wno-error
+ -Wall
-Wextra
-Wformat=2
-Wformat-security
-Wmissing-prototypes
-Wimplicit-function-declaration
-Wmissing-declarations
- -Wstrict-prototypes
-Wmissing-noreturn
-Wshadow
-Wendif-labels
-Wdate-time
-Wnested-externs
-Wno-typedef-redefinition
- -Wno-gnu-variable-sized-type-not-at-end'
+ -Wno-gnu-variable-sized-type-not-at-end
+ git_submodule_script:
+ - git submodule init -- opentelemetry-proto
+ - git submodule update -- opentelemetry-proto
+ configure_script:
+ - ./build.sh
+ - clang --version
+ - ./configure CC=clang CXX=clang++ $DEFAULT_CONFIG_OPTS
build_script:
- - make -j$(nproc) -sk
+ - make -j$(nproc) -sk CFLAGS="${CFLAGS} -Werror=strict-prototypes"
tests_script:
- - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j$(nproc) -sk check
+ - make -j$(nproc) check CFLAGS="${CFLAGS} -Werror=strict-prototypes"
always:
make_check_artifacts:
path: "**/*.log"
CC: clang
CC: clang-18
CC: clang-17
+ VALGRIND_OPTS: "--errors-for-leak-kinds=definite"
git_submodule_script:
- git submodule init -- opentelemetry-proto
- git submodule update -- opentelemetry-proto
CPPLAGS="$(dpkg-buildflags --get CPPFLAGS)"
LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"
build_script:
- - make -j$(nproc) -sk
+ - make -j$(nproc) -sk CFLAGS="${CFLAGS} -Werror=strict-prototypes"
tests_script:
- - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j$(nproc) -sk check
+ - make -j$(nproc) check CFLAGS="${CFLAGS} -Werror=strict-prototypes"
always:
make_check_artifacts:
path: "**/*.log"
matrix:
- image_family: freebsd-13-2
allow_failures: false
+ env:
+ VALGRIND_OPTS: "--errors-for-leak-kinds=definite"
pkg_install_script:
- >
pkg install --yes
- ./build.sh
- ./configure --disable-perl
build_script:
- - make -j$(nproc) -sk
+ - make -j$(nproc) -sk CFLAGS="${CFLAGS} -Werror=strict-prototypes"
tests_script:
- - VALGRIND_OPTS="--errors-for-leak-kinds=definite" make -j$(nproc) -sk check
+ - make -j$(nproc) check CFLAGS="${CFLAGS} -Werror=strict-prototypes"
always:
make_check_artifacts:
path: "**/*.log"
- ./build.sh
- ./configure ${DEFAULT_CONFIG_OPTS}
build_script:
- - make -j "${CIRRUS_CPU}" -sk
+ - make -j "${CIRRUS_CPU}" -sk CFLAGS="${CFLAGS} -Werror=strict-prototypes"
tests_script:
- - make -j "${CIRRUS_CPU}" -sk check
+ - make -j "${CIRRUS_CPU}" -sk check CFLAGS="${CFLAGS} -Werror=strict-prototypes"
always:
make_check_artifacts:
path: "**/*.log"