tasklwIP - A Lightweight TCP/IP stack - Tasks: task #16283, LwIP 2.1.3 with mbedTLS 2.28.1...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

task #16283: LwIP 2.1.3 with mbedTLS 2.28.1 generates 3 warnings with `gcc -std=gnu11 -Wall` (GCC 10)

Submitter:  Jonathan D <jona>
Submitted:  Tue 15 Nov 2022 10:50:09 AM UTC
   
 
Category:  None Should Start On:  Tue 15 Nov 2022 12:00:00 AM UTC
Should be Finished on:  Tue 15 Nov 2022 12:00:00 AM UTC Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  goldsimon Percent Complete:  100%
Open/Closed:  Closed Planned Release:  None
Effort:  0.00

Wed 11 Oct 2023 07:19:56 PM UTC, comment #2: 

Duplicate to bug #64045

Simon Goldschmidt <goldsimon>
Group administrator
Thu 04 May 2023 11:54:53 AM UTC, comment #1: 
Jonathan D <jona>
Tue 15 Nov 2022 10:50:09 AM UTC, original submission:  

Hello,

After having upgrade mbedTLS from 2.28.0 to 2.28.1, GCC generates 3 warnings:

Description Resource Path Location Type
ignoring return value of 'mbedtls_ssl_flush_output' declared with attribute 'warn_unused_result' [-Wunused-result] altcp_tls_mbedtls.c /SV-H743/LwIP/src/apps/altcp_tls line 522 C/C++ Problem
ignoring return value of 'mbedtls_ssl_flush_output' declared with attribute 'warn_unused_result' [-Wunused-result] altcp_tls_mbedtls.c /SV-H743/LwIP/src/apps/altcp_tls line 546 C/C++ Problem
ignoring return value of 'mbedtls_ssl_flush_output' declared with attribute 'warn_unused_result' [-Wunused-result] altcp_tls_mbedtls.c /SV-H743/LwIP/src/apps/altcp_tls line 1209 C/C++ Problem

The `__warn_unused_result__` was introduced in mbedTLS 2.28.1 for `mbedtls_ssl_flush_output`. This attribute was not there in mbedTLS 2.28.0.

A patch doesn't seem obvious to me.

Best regards

Jonathan D <jona>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Posted a comment)
  • -email is unavailable- added by jona (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-10-11 goldsimon StatusNone Done
        Percent Complete0% 100%
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code