From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzmF5-0000S9-Is for qemu-devel@nongnu.org; Thu, 27 Oct 2016 11:05:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzmF0-0003Xk-UF for qemu-devel@nongnu.org; Thu, 27 Oct 2016 11:05:19 -0400 Received: from mail-vk0-x236.google.com ([2607:f8b0:400c:c05::236]:33571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bzmF0-0003Wy-IM for qemu-devel@nongnu.org; Thu, 27 Oct 2016 11:05:14 -0400 Received: by mail-vk0-x236.google.com with SMTP id d65so2497230vkg.0 for ; Thu, 27 Oct 2016 08:05:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1477568774-4817-1-git-send-email-kraxel@redhat.com> References: <1477568774-4817-1-git-send-email-kraxel@redhat.com> From: Peter Maydell Date: Thu, 27 Oct 2016 16:04:53 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH] curses: build with -std=gnu99 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: QEMU Developers , Samuel Thibault On 27 October 2016 at 12:46, Gerd Hoffmann wrote: > --- > ui/Makefile.objs | 3 +++ > 1 file changed, 3 insertions(+) Missing commit message and signed-off-by line... > diff --git a/ui/Makefile.objs b/ui/Makefile.objs > index dc936f1..62f4cf3 100644 > --- a/ui/Makefile.objs > +++ b/ui/Makefile.objs > @@ -17,6 +17,9 @@ common-obj-$(CONFIG_CURSES) += curses.o > common-obj-$(CONFIG_VNC) += $(vnc-obj-y) > common-obj-$(CONFIG_GTK) += gtk.o x_keymap.o > > +# needed to make gcc accept wide unicode chars without warning > +curses.o-cflags := -std=gnu99 > + > ifeq ($(CONFIG_SDLABI),1.2) > sdl.mo-objs := sdl.o sdl_zoom.o > endif > -- > 1.8.3.1 I'm not sure about this. Do we really want gnu99 and not c99? Should we just enable std=c99 for all source files, given that we already assume C99 anyway? It would also be helpful if the commit message quoted the compiler warning that you get otherwise, so it's easier to see why we're doing this. thanks -- PMM