mirror of
https://github.com/ETLCPP/etl.git
synced 2026-04-30 19:09:10 +08:00
Fixed unused parameter warning
This commit is contained in:
parent
9b8c7780a4
commit
7d4e4e93fd
@ -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));
|
||||
}
|
||||
|
||||
|
||||
@ -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));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user