Received: from eggs.gnu.org ([2001:4830:134:3::10]:39190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1Znh-0007tK-42 for qemu-devel@nongnu.org; Mon, 09 Oct 2017 11:17:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1Znc-00049q-Rn for qemu-devel@nongnu.org; Mon, 09 Oct 2017 11:17:01 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:1775) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1Znc-00049S-Lm for qemu-devel@nongnu.org; Mon, 09 Oct 2017 11:16:56 -0400 Date: Mon, 9 Oct 2017 16:16:49 +0100 From: Anthony PERARD Message-ID: <20171009151649.GB1771@perard.uk.xensource.com> References: <20171009145542.GA1771@perard.uk.xensource.com> <20171009150231.GN2954@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171009150231.GN2954@redhat.com> Subject: Re: [Qemu-devel] =?utf-8?b?4oCYdnRlX3Rlcm1pbmFsX2NvcHlfY2xpcGJvYXJk?= =?utf-8?q?=E2=80=99_is_deprecated?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org, Gerd Hoffmann On Mon, Oct 09, 2017 at 04:02:31PM +0100, Daniel P. Berrange wrote: > On Mon, Oct 09, 2017 at 03:55:42PM +0100, Anthony PERARD wrote: > > Hi, > > > > Looks like vte_terminal_copy_clipboard() is been deprecated: > > > > CC ui/gtk.o > > ui/gtk.c: In function ‘gd_menu_copy’ > > ui/gtk.c:1705:5: error: ‘vte_terminal_copy_clipboard’ is deprecated [-Werror=deprecated-declarations] > > vte_terminal_copy_clipboard(VTE_TERMINAL(vc->vte.terminal)); > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > In file included from /usr/include/vte-2.91/vte/vte.h:35:0, > > from ui/gtk.c:47: > > /usr/include/vte-2.91/vte/vtedeprecated.h:94:6: note: declared here > > void vte_terminal_copy_clipboard(VteTerminal *terminal) _VTE_GNUC_NONNULL(1); > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > cc1: all warnings being treated as errors > > make: *** [/local/home/sheep/work/qemu/rules.mak:66: ui/gtk.o] Error 1 > > The docs say it should be simply replaced with a call to > vte_terminal_copy_clipboard_format, using VTE_FORMAT_TEXT > as the format. > > So we just need to make either the old or new method call > conditional on VTE version >= 0.50.0 > > Since you've got the new vte installed to test with, do you > want to write a patch for that :-) I was lazy, but yes, I can write the patch. Thanks for reading the doc :). -- Anthony PERARD