Skip to content

Conversation

@mako777
Copy link

@mako777 mako777 commented Mar 12, 2022

Hello, I've corrected a small compilation warning:

.../src/ModbusTCPTemplate.h:263:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
263 | while (tcpclient[n]->available()) // Drop all incoming if wrong packet
| ^~~~~
.../src/ModbusTCPTemplate.h:265:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
265 | continue;
| ^~~~~~~~

Have a good day :)

Compilation warning:
.../src/ModbusTCPTemplate.h:276:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  263 |     while (tcpclient[n]->available()) // Drop all incoming if wrong packet
      |     ^~~~~
.pio\libdeps\esp01_1m\modbus-esp8266\src/ModbusTCPTemplate.h:278:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
  265 |      continue;
      |      ^~~~~~~~
@emelianov emelianov merged commit 7b4b42a into emelianov:master Mar 13, 2022
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.

2 participants