Skip to content

Fix error non-void function and usage of non-standard port#2

Open
M256-Automation wants to merge 4 commits intoryanww:masterfrom
Request-Automation:master
Open

Fix error non-void function and usage of non-standard port#2
M256-Automation wants to merge 4 commits intoryanww:masterfrom
Request-Automation:master

Conversation

@M256-Automation
Copy link

With following settings:

  • Ubuntu 22.04.1 LTS
  • of_v0.11.2_linux64gcc6
  • Qt Creator 9.0.0 Based on Qt 6.4.1 (GCC 10.3.1 20210422)

we faced these errors:
.../addons/ofxModbusTCP/src/ofxModbusTcpClient.cpp:369: error: control reaches end of non-void function [-Werror=return-type]
.../addons/ofxModbusTCP/src/modbusSlave.h:50: error: control reaches end of non-void function [-Werror=return-type]
.../addons/ofxModbusTCP/src/ofxModbusTcpClient.cpp:378: error: control reaches end of non-void function [-Werror=return-type]
.../addons/ofxModbusTCP/src/modbusSlave.h:57: error: control reaches end of non-void function [-Werror=return-type]

Additionally, we had to use a non-standard port for ModbusTCP.

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