gprof: Fix warnings and enable more warnings and save actions.

Change-Id: Ia6993ffb814d52256b21ecf51699f007cabe45d8
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/36017