Enable Wall and Werror for build process, fixed unused function warning.