summaryrefslogtreecommitdiff
path: root/pcre
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-02-06 02:38:01 +0100
committerSergei Golubchik <serg@mariadb.org>2018-02-06 12:53:01 +0100
commit0c25e58db6b045df92c209d396031cac5b528bbf (patch)
tree74e61993ee9b9616179df5dad8bac1c3fe8e7399 /pcre
parent4418abb267583f34d24fab23835cb121a6ce14a2 (diff)
downloadmariadb-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 'pcre')
0 files changed, 0 insertions, 0 deletions