add an Wno-error option to unit test