From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753558Ab2C0K0f (ORCPT ); Tue, 27 Mar 2012 06:26:35 -0400 Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:37177 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750707Ab2C0K0d (ORCPT ); Tue, 27 Mar 2012 06:26:33 -0400 Date: Tue, 27 Mar 2012 13:26:27 +0300 (EEST) From: Pekka Enberg X-X-Sender: penberg@tux.localdomain To: Arnaldo Carvalho de Melo cc: Ingo Molnar , Colin Walters , linux-kernel@vger.kernel.org, Peter Zijlstra , Paul Mackerras Subject: Re: [PATCH] perf report: Add a simple GTK2-based 'perf report' browser In-Reply-To: <20120319181237.GB21538@infradead.org> Message-ID: References: <1330013922-3332-1-git-send-email-penberg@kernel.org> <1330025802.17301.1.camel@lenny> <1330029238.17301.3.camel@lenny> <20120224094812.GF814@elte.hu> <20120319181237.GB21538@infradead.org> User-Agent: Alpine 2.02 (LFD 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Mar 2012, Arnaldo Carvalho de Melo wrote: > Em Fri, Feb 24, 2012 at 12:05:56PM +0200, Pekka Enberg escreveu: > > On Fri, Feb 24, 2012 at 11:48 AM, Ingo Molnar wrote: > > > * Pekka Enberg wrote: > > > > > >> On Thu, Feb 23, 2012 at 10:33 PM, Colin Walters wrote: > > >> >> Sure. We don't want to do that for all files. Just for the ones that > > >> >> include . > > >> > > > >> > #pragma GCC diagnostic push > > >> > #pragma GCC diagnostic ignored "-Wstrict-prototypes" > > >> > #include > > >> > #pragma GCC diagnostic pop > > >> > > >> It's cleaner to do it at Makefile level. We should do > > >> something like sparse.git Makefile does where you can > > >> optionally specify CFLAGS for individual source files. > > > > > > I actually like the #pragma hack because it only turns off the > > > check for that broken header and keeps our checks in place for > > > the rest of the .c file. > > > > > > Could be turned into a util/gtk.h file that is included instead > > > of , so that we don't have to see the #pragma > > > workaround all the time? > > > > Sure, makes sense. > > Using just: > > #pragma GCC diagnostic ignored "-Wstrict-prototypes" > #include > #pragma GCC diagnostic error "-Wstrict-prototypes" > > Since push/pop was introduced in gcc 4.6, and here at the test machine > using RHEL6.2 I have gcc 4.4.6. Thanks for taking care of this, Arnaldo and Ingo!