Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation failed "no return statement in function returning non-void [-Werror=return-type]" #67

Open
Blastmun opened this issue Apr 16, 2024 · 2 comments

Comments

@Blastmun
Copy link

Blastmun commented Apr 16, 2024

Hello, I followed the tutorial but when compiling under arduino IDE I encountered this error, does anyone have any ideas?
I try with Arduino IDE 2.3.2 & wemos d1 mini

`
D:\PATH\TO\Jarolift_MQTT-0.7-2\Jarolift_MQTT-0.7\Jarolift_MQTT\Jarolift_MQTT.ino: In function 'int keeloq()':
D:\PATH\TO\Jarolift_MQTT-0.7-2\Jarolift_MQTT-0.7\Jarolift_MQTT\Jarolift_MQTT.ino:453:1: error: no return statement in function returning non-void [-Werror=return-type]
453 | } // int keeloq
| ^
D:\PATH\TO\Jarolift_MQTT-0.7-2\Jarolift_MQTT-0.7\Jarolift_MQTT\Jarolift_MQTT.ino: In function 'int keygen()':
D:\PATH\TOs\Jarolift_MQTT-0.7-2\Jarolift_MQTT-0.7\Jarolift_MQTT\Jarolift_MQTT.ino:479:1: error: no return statement in function returning non-void [-Werror=return-type]
479 | } // int keygen
| ^
D:\PATH\TO\Jarolift_MQTT-0.7-2\Jarolift_MQTT-0.7\Jarolift_MQTT\Jarolift_MQTT.ino: In function 'int rx_keygen()':
D:\PATH\TO\Jarolift_MQTT-0.7-2\Jarolift_MQTT-0.7\Jarolift_MQTT\Jarolift_MQTT.ino:641:1: error: no return statement in function returning non-void [-Werror=return-type]
641 | } // int rx_keygen
| ^
D:\PATH\TO\Jarolift_MQTT-0.7-2\Jarolift_MQTT-0.7\Jarolift_MQTT\Jarolift_MQTT.ino: In function 'int rx_decoder()':
D:\PATH\TO\Jarolift_MQTT-0.7-2\Jarolift_MQTT-0.7\Jarolift_MQTT\Jarolift_MQTT.ino:654:1: error: no return statement in function returning non-void [-Werror=return-type]
654 | } // int rx_decoder
| ^
cc1plus.exe: some warnings being treated as errors

exit status 1

Compilation error: no return statement in function returning non-void [-Werror=return-type]
`

@Blastmun Blastmun changed the title no return statement in function returning non-void [-Werror=return-type] compilation failed "no return statement in function returning non-void [-Werror=return-type]" Apr 21, 2024
@Blastmun
Copy link
Author

Help? =(

@Blastmun
Copy link
Author

you have to replace the int in question with void

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

No branches or pull requests

1 participant