Commit 425ef456 authored by Olivier Crête's avatar Olivier Crête 👻
Browse files

tests: Fix warning when building with newer GLib version

parent 8fe72dce
Pipeline #185183 passed with stages
in 8 minutes and 13 seconds
......@@ -44,9 +44,12 @@
#include <unistd.h>
#endif
#if !GLIB_CHECK_VERSION(2, 58, 0)
#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void)) (f))
/* Remove this when we request GLib 2.58 */
#if defined (GLIB_VERSION_2_58) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_58
#error "Remove this paragraph"
#endif
#undef G_SOURCE_FUNC
#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void)) (f))
/* Make the message sufficiently large to not hit Nagle’s algorithm in the
* pseudo-TCP implementation, and hence run really slowly. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment