-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deps: Fix GCC 14 build errors for lua-openssl on MSYS2
Yet another "temporary" workaround. Dodging the problem with diff patches is questionable at best, but unblocks the other PRs. Once the problem has been fixed upstream, or alternatively the workaround has been applied upstream, can likely get rid of this.
- Loading branch information
1 parent
b679f0c
commit 3e6f66c
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
diff --git a/src/ocsp.c b/src/ocsp.c | ||
index 57ec6a59..02bd4ebb 100644 | ||
--- a/src/ocsp.c | ||
+++ b/src/ocsp.c | ||
@@ -104,12 +104,22 @@ static int openssl_ocsp_request_read(lua_State *L) | ||
BIO *bio = load_bio_object(L, 1); | ||
int pem = lua_gettop(L) > 1 ? auxiliar_checkboolean(L, 2) : 0; | ||
|
||
+#if defined(__GNUC__) | ||
+#pragma GCC diagnostic push | ||
+#pragma GCC diagnostic ignored "-Wincompatible-pointer-types" | ||
+#endif | ||
+ | ||
#if defined(__clang__) | ||
#pragma clang diagnostic push | ||
#pragma clang diagnostic ignored "-Wincompatible-pointer-types" | ||
#endif | ||
OCSP_REQUEST *req = pem ? PEM_read_bio_OCSP_REQUEST(bio, NULL, NULL) | ||
: d2i_OCSP_REQUEST_bio(bio, NULL); | ||
+ | ||
+#if defined(__GNUC__) | ||
+#pragma GCC diagnostic pop | ||
+#endif | ||
+ | ||
#if defined(__clang__) | ||
#pragma clang diagnostic pop | ||
#endif | ||
@@ -137,12 +147,22 @@ static int openssl_ocsp_response_read(lua_State *L) | ||
int pem = lua_gettop(L) > 1 ? auxiliar_checkboolean(L, 2) : 0; | ||
int ret = 0; | ||
|
||
+#if defined(__GNUC__) | ||
+#pragma GCC diagnostic push | ||
+#pragma GCC diagnostic ignored "-Wincompatible-pointer-types" | ||
+#endif | ||
+ | ||
#if defined(__clang__) | ||
#pragma clang diagnostic push | ||
#pragma clang diagnostic ignored "-Wincompatible-pointer-types" | ||
#endif | ||
OCSP_RESPONSE *res = pem ? PEM_read_bio_OCSP_RESPONSE(bio, NULL, NULL) | ||
: d2i_OCSP_RESPONSE_bio(bio, NULL); | ||
+ | ||
+#if defined(__GNUC__) | ||
+#pragma GCC diagnostic pop | ||
+#endif | ||
+ | ||
#if defined(__clang__) | ||
#pragma clang diagnostic pop | ||
#endif |