[DBx1000] sovled several errors when -Werror is turned on.