diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-12 22:42:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-12 22:42:44 +0200 |
commit | e682d799fa3cf2e80a02d00c6ea874599d58f0e7 (patch) | |
tree | dabbd64aed10f3da7439d2e32dd7b69596b7ff76 /test/functional/eval/executable_spec.lua | |
parent | ec66d2eecd544f764ff73a3f4aa472f188d2fea6 (diff) | |
download | rneovim-e682d799fa3cf2e80a02d00c6ea874599d58f0e7.tar.gz rneovim-e682d799fa3cf2e80a02d00c6ea874599d58f0e7.tar.bz2 rneovim-e682d799fa3cf2e80a02d00c6ea874599d58f0e7.zip |
build: fix check_c_compiler_flag for -Wno-… (#10483)
`check_c_compiler_flag(-Wno-doesnotexist …)` is successful always,
apparently for all "no-" prefixes.
Therefore check for the flag itself (without "no-" prefix).
I am seeing a warning if the source fails to compile:
> cc1: warning: unrecognized command line option ‘-Wno-meh’
Which is turned into an error with `-Werror`:
> cc1: error: unrecognized command line option ‘-Wno-meh’ [-Werror]
But when it compiles successfully, there is no warning/error.
gcc (GCC) 9.1.0.
Diffstat (limited to 'test/functional/eval/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions