diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-08-05 11:15:59 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2024-08-05 12:02:47 +0200 |
commit | 217e26cb641ffa50698f50f53a4f25d4aea80782 (patch) | |
tree | 44ba5159ab9e5480c6f8ab72d277a729660a161e /src | |
parent | 0c2860d9e5ec5417a94db6e3edd237578b76d418 (diff) | |
download | rneovim-217e26cb641ffa50698f50f53a4f25d4aea80782.tar.gz rneovim-217e26cb641ffa50698f50f53a4f25d4aea80782.tar.bz2 rneovim-217e26cb641ffa50698f50f53a4f25d4aea80782.zip |
fix(build): surpress spurious warnings from gcc in -E preprocessor mode
Since #29315 we are also preprocessing header files in order to find
functions which need prototype declarations. gcc emits a spurious
"warning: #pragma once in main file" even when when you are just
using `gcc -E` which causes a bit of noise in compiler output.
As a workaround, surpress all warnings for this step, this should be pretty
much harmless as we will still get preprocessor warnings when doing
actual compilation `gcc -c` later.
reference: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89808
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index eeb7e76616..546dc3a1e6 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -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}") |