]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/libsupc++/del_op.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / libsupc++ / del_op.cc
index 86d4c1e298590dac7dbdfacaf861f99925960624..dd0dd94de0d84f94fbe55679e6a6281dcf1713bd 100644 (file)
@@ -1,6 +1,6 @@
 // Boilerplate support routines for -*- C++ -*- dynamic memory management.
 
-// Copyright (C) 1997, 1998, 1999, 2000, 2004, 2007, 2009 Free Software Foundation
+// Copyright (C) 1997-2024 Free Software Foundation, Inc.
 //
 // This file is part of GCC.
 //
@@ -40,9 +40,11 @@ _GLIBCXX_END_NAMESPACE_VERSION
 
 #include "new"
 
+// The sized deletes are defined in other files.
+#pragma GCC diagnostic ignored "-Wsized-deallocation"
+
 _GLIBCXX_WEAK_DEFINITION void
-operator delete(void* ptr) throw ()
+operator delete(void* ptr) noexcept
 {
-  if (ptr)
-    std::free(ptr);
+  std::free(ptr);
 }