Commit f88efe23 authored by Christian Persch's avatar Christian Persch

regex: Only silence warning on GCC

clang doesn't know this warning, so silencing it results in
another warning.
parent 228a2850
......@@ -105,7 +105,9 @@ set_gerror_from_pcre_error(int errcode,
}
#pragma GCC diagnostic push
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
G_DEFINE_BOXED_TYPE(VteRegex, vte_regex,
vte_regex_ref, (GBoxedFreeFunc)vte_regex_unref)
#pragma GCC diagnostic pop
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment