Merge pull request #29982 from bfredl/gccwarn

fix(build): surpress spurious warnings from gcc in -E preprocessor mode
This commit is contained in:
bfredl 2024-08-05 12:43:02 +02:00 committed by GitHub
commit c7b100630a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -563,7 +563,7 @@ foreach(sfile ${NVIM_SOURCES}
if(MSVC)
set(PREPROC_OUTPUT /P /Fi${gf_i} /nologo)
else()
set(PREPROC_OUTPUT -E -o ${gf_i})
set(PREPROC_OUTPUT -w -E -o ${gf_i})
endif()
set(depends "${HEADER_GENERATOR}" "${sfile}" "${LUA_GEN_DEPS}")