gcc11.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. Description: don't use dynamic exceptions
  2. Just remove those.
  3. Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
  4. Bug-Debian: https://bugs.debian.org/984098
  5. Last-Update: 2021-10-12
  6. ---
  7. --- a/cutl/shared-ptr/base.cxx
  8. +++ b/cutl/shared-ptr/base.cxx
  9. @@ -25,7 +25,7 @@ namespace cutl
  10. //
  11. //
  12. void*
  13. -operator new (size_t n, cutl::share s) throw (std::bad_alloc)
  14. +operator new (size_t n, cutl::share s)
  15. {
  16. if (s == shared)
  17. {
  18. --- a/cutl/shared-ptr/base.hxx
  19. +++ b/cutl/shared-ptr/base.hxx
  20. @@ -31,7 +31,7 @@ extern LIBCUTL_EXPORT cutl::share shared
  21. extern LIBCUTL_EXPORT cutl::share exclusive;
  22. LIBCUTL_EXPORT void*
  23. -operator new (std::size_t, cutl::share) throw (std::bad_alloc);
  24. +operator new (std::size_t, cutl::share);
  25. LIBCUTL_EXPORT void
  26. operator delete (void*, cutl::share) throw ();
  27. @@ -61,7 +61,7 @@ namespace cutl
  28. _ref_count () const;
  29. void*
  30. - operator new (std::size_t, share) throw (std::bad_alloc);
  31. + operator new (std::size_t, share);
  32. void
  33. operator delete (void*, share) throw ();
  34. --- a/cutl/shared-ptr/base.ixx
  35. +++ b/cutl/shared-ptr/base.ixx
  36. @@ -59,7 +59,7 @@ namespace cutl
  37. }
  38. inline void* shared_base::
  39. - operator new (std::size_t n, share) throw (std::bad_alloc)
  40. + operator new (std::size_t n, share)
  41. {
  42. return ::operator new (n);
  43. }