replace warnings with errors for #180