Skip to content

Commit

Permalink
Fixed unused parameter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed Jul 30, 2024
1 parent 9b8c778 commit 7d4e4e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/etl/indirect_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
1 change: 1 addition & 0 deletions include/etl/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 7d4e4e9

Please sign in to comment.