diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-02-06 02:38:01 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-02-06 12:53:01 +0100 |
commit | 0c25e58db6b045df92c209d396031cac5b528bbf (patch) | |
tree | 74e61993ee9b9616179df5dad8bac1c3fe8e7399 /mysys_ssl | |
parent | 4418abb267583f34d24fab23835cb121a6ce14a2 (diff) | |
download | mariadb-git-0c25e58db6b045df92c209d396031cac5b528bbf.tar.gz |
correctly detect unsupported compiler flags
in gcc `-Wno-unsupported-something` will not be an error or even a warning,
so cmake will think the flag is supported. But if there's any other
warning during compilation, for any reason, unknown option will
be a warning too. Or an error when -Werror, even if that "other warning"
would not be an error on itself.
So we need to detect whether `-Wno-unsupported-something` is *really*
supported. Luckily, `-Wunsupported-something` will always fail with an
error.
So, whenever there's a need to detect if -Wno-something is supported,
test -Wsomething instead.
Diffstat (limited to 'mysys_ssl')
0 files changed, 0 insertions, 0 deletions