From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkHXH-0004rB-FE for qemu-devel@nongnu.org; Tue, 13 May 2014 14:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkHXB-0001v6-Ih for qemu-devel@nongnu.org; Tue, 13 May 2014 14:34:43 -0400 Received: from mail-qc0-f179.google.com ([209.85.216.179]:61662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkHXB-0001u9-ER for qemu-devel@nongnu.org; Tue, 13 May 2014 14:34:37 -0400 Received: by mail-qc0-f179.google.com with SMTP id x3so1009660qcv.10 for ; Tue, 13 May 2014 11:34:36 -0700 (PDT) From: Mike Day Date: Tue, 13 May 2014 14:34:29 -0400 Message-Id: <1400006069-11143-1-git-send-email-ncmike@ncultra.org> Subject: [Qemu-devel] [PATCH] Remove g_sequence_lookup from qemu-img help function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, Mike Day , stefanha@redhat.com, cornelia.huck@de.ibm.com, ambru@redhat.com g_sequence_lookup is not supported by glib < 2.28. The usage of g_sequence_lookup is not essential in this context (its a safeguard against duplicate values in the help message). Removing the call enables the build on all platforms and does not change the operation of the help function. Signed-off-by: Mike Day --- qemu-img.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/qemu-img.c b/qemu-img.c index 04ce02a..bf5e74c 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -70,11 +70,8 @@ static void add_format_to_seq(void *opaque, const char *fmt_name) { GSequence *seq = opaque; - if (!g_sequence_lookup(seq, (gpointer)fmt_name, - compare_data, NULL)) { g_sequence_insert_sorted(seq, (gpointer)fmt_name, compare_data, NULL); - } } static void QEMU_NORETURN GCC_FMT_ATTR(1, 2) error_exit(const char *fmt, ...) -- 1.9.0