diff options
Diffstat (limited to 'patches/ima-evm-utils-1.1/0012-Fix-warning-for-non-debug-use-case.patch')
-rw-r--r-- | patches/ima-evm-utils-1.1/0012-Fix-warning-for-non-debug-use-case.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/ima-evm-utils-1.1/0012-Fix-warning-for-non-debug-use-case.patch b/patches/ima-evm-utils-1.1/0012-Fix-warning-for-non-debug-use-case.patch new file mode 100644 index 000000000..80073f19a --- /dev/null +++ b/patches/ima-evm-utils-1.1/0012-Fix-warning-for-non-debug-use-case.patch @@ -0,0 +1,28 @@ +From: Juergen Borleis <jbe@pengutronix.de> +Date: Wed, 18 Nov 2015 15:15:15 +0100 +Subject: [PATCH] Fix warning for non-debug use case + +This change fixes: + + evmctl.c:1194:12: warning: 'cmd_hmac_evm' defined but not used [-Wunused-function] + +Note: this change is GCC specific + +Signed-off-by: Juergen Borleis <jbe@pengutronix.de> +--- + src/evmctl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/evmctl.c b/src/evmctl.c +index 9003f7640c0f..4422c0e84d4a 100644 +--- a/src/evmctl.c ++++ b/src/evmctl.c +@@ -1191,7 +1191,7 @@ static int hmac_evm(const char *file, const char *key) + return 0; + } + +-static int cmd_hmac_evm(struct command *cmd) ++static __attribute__((unused)) int cmd_hmac_evm(struct command *cmd) + { + const char *key, *file = g_argv[optind++]; + int err; |