use attribute for format if gcc