fix pedantic compile warning