libthinkpad / dockd

Lenovo ThinkPad Dock Management Daemon. Docs:
http://thinkpads.org/projects/dockd/
Other
131 stars 22 forks source link

Fix missing return values for non-void functions #36

Closed thasti closed 4 years ago

thasti commented 4 years ago

During compilation, I encountered a number of warnings due to missing return values.

no return statement in function returning non-void [-Wreturn-type]
control reaches end of non-void function [-Wreturn-type]

As the binary after compilation also segfaulted for me, even with just --help, I figured maybe addressing them would help. And indeed, fixing those made the binary work reliably.

smclt30p commented 4 years ago

Thanks guys for continuing with dockd. Means a lot to me.

schoettl commented 4 years ago

Thanks, too :)

I plan to release a new version of dockd with a few fixes in the next time on AUR. I have to see how it is with other Linux distros...