lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #64045] [altcp_tls_mbedtls.c] Warnings about not check


From: Giuseppe Modugno
Subject: [lwip-devel] [bug #64045] [altcp_tls_mbedtls.c] Warnings about not checked return values from mbedtls_ssl_flush_output()
Date: Fri, 14 Apr 2023 04:19:00 -0400 (EDT)

URL:
  <https://savannah.nongnu.org/bugs/?64045>

                 Summary: [altcp_tls_mbedtls.c] Warnings about not checked
return values from mbedtls_ssl_flush_output()
                   Group: lwIP - A Lightweight TCP/IP stack
               Submitter: giusloq
               Submitted: Fri 14 Apr 2023 08:18:58 AM UTC
                Category: apps
                Severity: 3 - Normal
              Item Group: Compiler Warning
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 14 Apr 2023 08:18:58 AM UTC By: Giuseppe Modugno <giusloq>
In altcp_tls_mbedtls. there are some calls to mbedtls_ssl_flush_output(). This
is a function that is defined as:


MBEDTLS_CHECK_RETURN_CRITICAL
int mbedtls_ssl_flush_output(mbedtls_ssl_context *ssl);


in ssl_internal.h.

In my build process, the compiler emits some warnings as the following:


lwip\src\apps\altcp_tls\altcp_tls_mbedtls.c|532|warning: ignoring return value
of 'mbedtls_ssl_flush_output', declared with attribute warn_unused_result
[-Wunused-result]|


It seems it is important to check the error code returned by this function,
but lwip does not.







    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?64045>

_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]