| Fix compiling warning "'<type>' is promoted to 'int' when passed through '...'". |
| diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sys/cam/scsi/scsi_all.c freebsd-11.1/sys/cam/scsi/scsi_all.c |
| --- /usr/src/sys/cam/scsi/scsi_all.c 2017-07-21 07:42:02.000000000 +0800 |
| +++ freebsd-11.1/sys/cam/scsi/scsi_all.c 2019-12-20 17:17:34.603129651 +0800 |
| @@ -3761,7 +3761,7 @@ |
| |
| desc = &sense->sense_desc[0]; |
| space = *sense_len - offsetof(struct scsi_sense_data_desc, sense_desc); |
| - while ((elem_type = va_arg(ap, scsi_sense_elem_type)) != |
| + while ((elem_type = va_arg(ap, int)) != |
| SSD_ELEM_NONE) { |
| if (elem_type >= SSD_ELEM_MAX) { |
| printf("%s: invalid sense type %d\n", __func__, |
| @@ -3915,7 +3915,7 @@ |
| } else |
| sense->flags |= SSD_SDAT_OVFL; |
| |
| - while ((elem_type = va_arg(ap, scsi_sense_elem_type)) != |
| + while ((elem_type = va_arg(ap, int)) != |
| SSD_ELEM_NONE) { |
| if (elem_type >= SSD_ELEM_MAX) { |
| printf("%s: invalid sense type %d\n", __func__, |