Skip to content

[BUG]warning: comparison is always true due to limited range of data type [-Wtype-limits] #184

@tbnobody

Description

@tbnobody

Describe the bug
Getting warning when compiling the code

Which platform, esp8266 or esp32? esp32
Do you use TLS or not? Yes
Do you use an IDE (Arduino, Platformio...)? Platformio
Which version of the Arduino framework? espressif32@6.10.0

.pio/libdeps/generic_esp32/espMqttClient/src/MqttClient.cpp: In constructor 'MqttClient::MqttClient(espMqttClientTypes::UseInternalTask, uint8_t, uint8_t)':
.pio/libdeps/generic_esp32/espMqttClient/src/MqttClient.cpp:69:14: warning: comparison is always true due to limited range of data type [-Wtype-limits]
     if (core >= 0 && core < 2) {
         ~~~~~^~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions