Suppress cast function type warnings where needed for bio Change-Id: I3b2d7d0735c5b8e32c4fc04d0926e366b59d121b Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/72067 Reviewed-by: Tom Flucke <tflucke@google.com> Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com>
diff --git a/crypto/bio/connect.c b/crypto/bio/connect.c index 900e659..50d8983 100644 --- a/crypto/bio/connect.c +++ b/crypto/bio/connect.c
@@ -487,7 +487,11 @@ // convention. OPENSSL_MSVC_PRAGMA(warning(push)) OPENSSL_MSVC_PRAGMA(warning(disable : 4191)) + OPENSSL_CLANG_PRAGMA("clang diagnostic push") + OPENSSL_CLANG_PRAGMA("clang diagnostic ignored \"-Wunknown-warning-option\"") + OPENSSL_CLANG_PRAGMA("clang diagnostic ignored \"-Wcast-function-type\"") data->info_callback = (int (*)(const struct bio_st *, int, int))fp; + OPENSSL_CLANG_PRAGMA("clang diagnostic pop") OPENSSL_MSVC_PRAGMA(warning(pop)) break; default: