Return-Path: MIME-Version: 1.0 In-Reply-To: <20130218161331.GA5539@x220.P-661HNU-F1> References: <1361203483-32117-1-git-send-email-s.syam@samsung.com> <20130218161331.GA5539@x220.P-661HNU-F1> From: Lucas De Marchi Date: Mon, 18 Feb 2013 13:44:07 -0300 Message-ID: Subject: Re: [PATCH 1/2] tools: Fix compilation error with GINT_TO_POINTER To: Syam Sidhardhan , linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=windows-1252 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Mon, Feb 18, 2013 at 1:13 PM, Johan Hedberg wrote: > Hi Syam, > > On Mon, Feb 18, 2013, Syam Sidhardhan wrote: >> Fixes the following error: >> tools/btmgmt.c: In function ?index_rsp?: >> tools/btmgmt.c:756:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] >> tools/btmgmt.c: In function ?cmd_info?: >> tools/btmgmt.c:791:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] >> cc1: all warnings being treated as errors >> make[1]: *** [tools/btmgmt.o] Error 1 >> make: *** [all] Error 2 >> --- >> tools/btmgmt.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > This patch has been applied. For whatever reason I did not get this > warning/error in my environment. Which gcc version and architecture are > you using? The problem is more likely to be in the different glib versions and running on 32 bits: https://bugzilla.gnome.org/show_bug.cgi?id=661546 Lucas De Marchi