Fix/suppress some compiler warnings.

Change-Id: I5ee900a062b30404e6a0b88fe373fba06d92699e
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3447
Tested-by: jenkins
Reviewed-by: Nong Li <nong@cloudera.com>