crash_dump: fix warnings, turn on -Werror.

Test: mma
Change-Id: I0722fef7b513be976cbbe89f73e8bb7138a80442
3 files changed