Fixed unused parameter warning

This commit is contained in:
John Wellbelove 2024-07-30 13:35:30 +01:00
parent 9b8c7780a4
commit 7d4e4e93fd
2 changed files with 2 additions and 0 deletions

View File

@ -606,6 +606,7 @@ namespace etl
//*********************************************************************
void reserve(size_t n)
{
(void)n; // Stop 'unused parameter' warning in release mode.
ETL_ASSERT(n <= capacity(), ETL_ERROR(vector_out_of_bounds));
}

View File

@ -269,6 +269,7 @@ namespace etl
//*********************************************************************
void reserve(size_t n)
{
(void)n; // Stop 'unused parameter' warning in release mode.
ETL_ASSERT(n <= CAPACITY, ETL_ERROR(vector_out_of_bounds));
}