Skip to content

Conversation

Cube707
Copy link

@Cube707 Cube707 commented Jul 3, 2025

Description

We use the IAR compiler to build mbedtls for our embedded project. This compiler throws a warning about these two lines:

mbedtls_ssl_handshake_set_state(ssl, (ssl->state + 1));
                                           ^
"D:\proj\sinamics-m\firmware\lib\mbedtls\library\ssl_misc.h",1361  Error[Pe188]: 
          enumerated type mixed with another type

As we tread all warning as errors, we currently have to apply a patch.

Adding the casts fixes the issue.

Changelog

* Fix IAR compiler warnings.

IAR throws a warning "mixed ENUM with other type"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant