warnings: fix 'function declaration isn't a prototype'

Change-Id: I7e096a811d53323a68c65b3fa073c6d550122dcd
warnings: fix "'return' with a value, in function returning void"

Change-Id: Iaa5c61da88a4b94b8284dcf07336da41f08ad345