refactoring: re-add suppresswarnings for unused allocation