build: disable the format-truncation warning error to fix gcc 7 build errors