mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Despite assigning the function to a variable, gcc can still detect that the function never changes and most of the test code is optimized out. Initialize it somewhere, where the compiler cannot prove that this function pointer is always set to the same value. We could also make the pointer volatile, but this approach seems preferable to me.