git: 18851ec64b62 - main - sysutils/fluent-bit: fix compile problem with recent clang

From: Palle Girgensohn <girgen_at_FreeBSD.org>
Date: Mon, 04 Apr 2022 14:18:55 UTC
The branch main has been updated by girgen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=18851ec64b62c0666cca77c575dc5fc59fd7bf9f

commit 18851ec64b62c0666cca77c575dc5fc59fd7bf9f
Author:     Palle Girgensohn <girgen@FreeBSD.org>
AuthorDate: 2022-04-04 14:16:20 +0000
Commit:     Palle Girgensohn <girgen@FreeBSD.org>
CommitDate: 2022-04-04 14:18:51 +0000

    sysutils/fluent-bit: fix compile problem with recent clang
    
    PR:             263037
    Submitted by:   Hiroo Ono
    
    Upstream patch submitted to https://github.com/Mbed-TLS/mbedtls/pull/5691
---
 .../patch-lib_mbedtls-2.27.0_library_psa__crypto__cipher.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sysutils/fluent-bit/files/patch-lib_mbedtls-2.27.0_library_psa__crypto__cipher.c b/sysutils/fluent-bit/files/patch-lib_mbedtls-2.27.0_library_psa__crypto__cipher.c
new file mode 100644
index 000000000000..6745ea2b2785
--- /dev/null
+++ b/sysutils/fluent-bit/files/patch-lib_mbedtls-2.27.0_library_psa__crypto__cipher.c
@@ -0,0 +1,14 @@
+--- /dev/null	
++++ b/sysutils/fluent-bit/files/patch-lib_mbedtls-2.27.0_library_psa__crypto__cipher.c	
+@@ -0,0 +1,11 @@ 
++--- lib/mbedtls-2.27.0/library/psa_crypto_cipher.c.orig	2022-04-04 06:45:04 UTC
+++++ lib/mbedtls-2.27.0/library/psa_crypto_cipher.c
++@@ -267,7 +267,7 @@ static psa_status_t psa_cipher_update_ecb(
++     const uint8_t *input,
++     size_t input_length,
++     uint8_t *output,
++-    size_t output_size,
+++    size_t output_size __attribute__((unused)),
++     size_t *output_length )
++ {
++     psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;