Fix some warnings with the release build.

This commit is contained in:
David Reid
2026-01-28 10:24:47 +10:00
parent 847711e291
commit 3b5b433e0c
+5 -1
View File
@@ -21121,6 +21121,7 @@ static ma_result ma_device_start__null(ma_device* pDevice)
ma_device_state_null* pDeviceStateNull = ma_device_get_backend_state__null(pDevice);
MA_ASSERT(pDeviceStateNull != NULL);
(void)pDeviceStateNull;
return MA_SUCCESS;
}
@@ -21130,6 +21131,7 @@ static ma_result ma_device_stop__null(ma_device* pDevice)
ma_device_state_null* pDeviceStateNull = ma_device_get_backend_state__null(pDevice);
MA_ASSERT(pDeviceStateNull != NULL);
(void)pDeviceStateNull;
return MA_SUCCESS;
}
@@ -42913,6 +42915,8 @@ static ma_result ma_device_init_fd__oss(ma_device* pDevice, const ma_device_conf
MA_ASSERT(pFD != NULL);
MA_ASSERT(deviceType != ma_device_type_duplex);
(void)pDeviceConfigOSS;
pDeviceID = pDescriptor->pDeviceID;
shareMode = pDescriptor->shareMode;
ossFormat = ma_format_to_oss((pDescriptor->format != ma_format_unknown) ? pDescriptor->format : ma_format_s16); /* Use s16 by default because OSS doesn't like floating point. */
@@ -47333,7 +47337,7 @@ static ma_result ma_device_op_do_init(ma_device* pDevice, ma_device_op_params pa
} else {
/* Should never hit this. */
MA_ASSERT(!"No onDeviceInit callback.");
result = MA_NOT_IMPLEMENTED;
return MA_NOT_IMPLEMENTED;
}
/* Store the backend state as soon as possible. */