libxx: Add exception specifier to operator delete

CXX:  libxx_delete.cxx
libxx_delete.cxx:52:6: error: 'operator delete' is missing exception
      specification 'throw()' [-Werror,-Wmissing-exception-spec]
void operator delete(FAR void *ptr)
     ^
                                    throw()
1 error generated.
This commit is contained in:
YAMAMOTO Takashi 2020-10-26 15:00:38 +09:00 committed by Brennan Ashton
parent 6aef245523
commit 4c7bf29e35
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@
// Name: delete
//***************************************************************************
void operator delete(FAR void *ptr)
void operator delete(FAR void *ptr) throw()
{
lib_free(ptr);
}

View File

@ -49,7 +49,7 @@
// Name: delete[]
//***************************************************************************
void operator delete[](FAR void *ptr)
void operator delete[](FAR void *ptr) throw()
{
lib_free(ptr);
}