please compile with -Wall and fix warnings.