From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUCva-00060x-Oz for qemu-devel@nongnu.org; Sat, 07 Mar 2015 06:29:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUCvV-0006RJ-PG for qemu-devel@nongnu.org; Sat, 07 Mar 2015 06:29:54 -0500 Received: from [2a03:4000:1::4e2f:c7ac:d] (port=59110 helo=v220110690675601.yourvserver.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUCvV-0006R9-J8 for qemu-devel@nongnu.org; Sat, 07 Mar 2015 06:29:49 -0500 Message-ID: <54FAE11F.9070900@weilnetz.de> Date: Sat, 07 Mar 2015 12:29:35 +0100 From: Stefan Weil MIME-Version: 1.0 References: <54FADD98.8080509@redhat.com> In-Reply-To: <54FADD98.8080509@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] clang warnings too noisy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Peter Maydell , qemu-devel , Stefan Hajnoczi Am 07.03.2015 um 12:14 schrieb Paolo Bonzini: > On 07/03/2015 00:47, Peter Maydell wrote: >>> 1. It complains about glib headers: >>> In file included from /home/stefanha/qemu/include/net/eth.h:32: >>> In file included from /home/stefanha/qemu/include/qemu/iov.h:17: >>> In file included from /home/stefanha/qemu/include/qemu-common.h:43: >>> In file included from /home/stefanha/qemu/include/glib-compat.h:19: >>> In file included from /usr/include/glib-2.0/glib.h:50: >>> In file included from /usr/include/glib-2.0/glib/ghash.h:33: >>> In file included from /usr/include/glib-2.0/glib/glist.h:32: >>> /usr/include/glib-2.0/glib/gmem.h:76:78: warning: unknown attribute >>> '__alloc_size__' ignored [-Wunknown-attributes] >>> gpointer g_malloc (gsize n_bytes) __attribute__((__malloc__)) >>> __attribute__((__alloc_size__(1))); >>> ^ >>> /usr/include/glib-2.0/glib/gmem.h:78:79: warning: unknown attribute >>> '__alloc_size__' ignored [-Wunknown-attributes] >> I think this is a glib bug... > If clang supports fewer attributes than GCC, the right course of action > is disabling the warning on clang. There are very few attributes that > are used commonly and that affect ABI; most of them are just annotations. > > Paolo On Debian Jessie I don't get any of those warnings with clang. I think we can focus clang support on those environmentswhich are really needed: Mac OS X and Linux with sufficiently new distributions. Then no action is necessary. Stefan