Skip to content

Commit 5f4d1fd

Browse files
kaccardishuahkh
authored andcommitted
selftests/sgx: Ignore OpenSSL 3.0 deprecated functions warning
OpenSSL 3.0 deprecates some of the functions used in the SGX selftests, causing build errors on new distros. For now ignore the warnings until support for the functions is no longer available and mark FIXME so that it can be clear this should be removed at some point. Signed-off-by: Kristen Carlson Accardi <[email protected]> Reviewed-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 568035b commit 5f4d1fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/testing/selftests/sgx/sigstruct.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
#include "defines.h"
1818
#include "main.h"
1919

20+
/*
21+
* FIXME: OpenSSL 3.0 has deprecated some functions. For now just ignore
22+
* the warnings.
23+
*/
24+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
25+
2026
struct q1q2_ctx {
2127
BN_CTX *bn_ctx;
2228
BIGNUM *m;

0 commit comments

Comments
 (0)