mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Enable it in Makefile generator jobs that run in merge requests. In particular, this causes RunCMake tests to fail if they build C code with a missing function prototype because the compiler's stderr reaches RunCMake's checks. Catch this before staging. Skip enabling this in the Fedora+Makefiles job because Fedora's GCC now defaults to C23 under which -Wstrict-prototypes does not warn. Suggested-by: Matthew Woehlke <matthew.woehlke@kitware.com>
6 lines
139 B
Bash
6 lines
139 B
Bash
. .gitlab/ci/openmp-env.sh
|
|
if test "$CMAKE_CI_NIGHTLY" = "true"; then
|
|
source .gitlab/ci/ispc-env.sh
|
|
fi
|
|
export CFLAGS=-Wstrict-prototypes
|