gstreamermm-1.10.0-no-volatile.patch 856 B

123456789101112131415161718
  1. https://bugs.gentoo.org/786444
  2. g_once_init_enter(void*) should NOT be passed a volatile argument:
  3. https://developer.gnome.org/glib/stable/glib-Threads.html#g-once-init-enter
  4. "While location has a volatile qualifier, this is a historical
  5. artifact and the pointer passed to it should not be volatile."
  6. --- gstreamermm-1.10.0/gstreamer/gstreamermm/register.h.orig 2017-10-20 12:26:46.000000000 +0300
  7. +++ gstreamermm-1.10.0/gstreamer/gstreamermm/register.h 2021-05-25 17:52:13.031337753 +0300
  8. @@ -110,7 +110,7 @@
  9. /* The typedef for GType may be gulong or gsize, depending on the
  10. * system and whether the compiler is c++ or not. The g_once_init_*
  11. * functions always take a gsize * though ... */
  12. - static volatile gsize gonce_data = 0;
  13. + static gsize gonce_data = 0;
  14. if (g_once_init_enter (&gonce_data)) {
  15. GTypeInfo info;