add option --enable-werror to configure.

Enabling this option turns warnings into errors. By default this option is off.