From 5bb5ee39242019d2414860f6122ac95a39ea4d30 Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 30 Nov 2015 23:54:23 -0300 Subject: purple: avoid warnings in the PURPLE_INPUT_* enum checks Also turn them into asserts because that's what it really does. --- protocols/purple/purple.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index 99f8865b..911edaea 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -1412,11 +1412,8 @@ void purple_initmodule() GString *help; char *dir; - if (B_EV_IO_READ != PURPLE_INPUT_READ || - B_EV_IO_WRITE != PURPLE_INPUT_WRITE) { - /* FIXME FIXME FIXME FIXME FIXME :-) */ - exit(1); - } + g_assert((int) B_EV_IO_READ == (int) PURPLE_INPUT_READ); + g_assert((int) B_EV_IO_WRITE == (int) PURPLE_INPUT_WRITE); dir = g_strdup_printf("%s/purple", global.conf->configdir); purple_util_set_user_dir(dir); -- cgit v1.2.3