ANDROID: sign-file: Fix warning when OPENSSL_NO_ENGINE is set
Place drain_openssl_errors() function under the same build constraints
as the code that calls it.
scripts/sign-file.c:96:13: warning: unused function 'drain_openssl_errors' [-Wunused-function]
static void drain_openssl_errors(void)
^
1 warning generated.
For some reason this wasn't picked-up on during automated testing.
Fixes: e9d39639a529 ("FROMLIST: sign-file: Use OpenSSL provided define to compile out deprecated APIs")
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I3b337a9deac4ee83cb780792ece8f5f701a01f5f
(cherry picked from commit fad17703b529eeb423eab346ffb8e8fd16baf745)
Signed-off-by: Naveen <133593113+elohim-etz@users.noreply.github.com>
This commit is contained in:
@@ -99,6 +99,7 @@ static void display_openssl_errors(int l)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef OPENSSL_NO_ENGINE
|
||||||
static void drain_openssl_errors(void)
|
static void drain_openssl_errors(void)
|
||||||
{
|
{
|
||||||
const char *file;
|
const char *file;
|
||||||
@@ -108,6 +109,7 @@ static void drain_openssl_errors(void)
|
|||||||
return;
|
return;
|
||||||
while (ERR_get_error_line(&file, &line)) {}
|
while (ERR_get_error_line(&file, &line)) {}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ERR(cond, fmt, ...) \
|
#define ERR(cond, fmt, ...) \
|
||||||
do { \
|
do { \
|
||||||
|
|||||||
Reference in New Issue
Block a user