Return-Path: Date: Fri, 9 Dec 2011 10:48:28 +0200 From: Johan Hedberg To: Frederic Danis Cc: Emeltchenko Andrei , linux-bluetooth@vger.kernel.org Subject: Re: [PATCH hciemu v2 1/2] Process Read Local AMP Info in hciemu Message-ID: <20111209084828.GA24969@x220> References: <1323334477-32179-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> <20111208094032.GA28204@x220> <4EE0D0A0.2000401@linux.intel.com> <20111209081637.GB7256@aemeltch-MOBL1> <4EE1CA0F.2040402@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <4EE1CA0F.2040402@linux.intel.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Frederic, On Fri, Dec 09, 2011, Frederic Danis wrote: > >>fdanis@fdanis-linux:bluez (master %)$ make > >>make --no-print-directory all-am > >> CC test/hciemu.o > >>cc1: warnings being treated as errors > >>test/hciemu.c: In function ‘hci_host_control’: > >>test/hciemu.c:431: error: dereferencing pointer ‘({anonymous})’ does > >>break strict-aliasing rules > >>test/hciemu.c:431: note: initialized from here > >>make[1]: *** [test/hciemu.o] Error 1 > >>make: *** [all] Error 2 > > > >Cannot reproduce this problem on my Ubuntu 11.04. Are you sure the error is > >attributed to my patch? > > Yes, I replaced line 431 by: > sa.sin_port = ba.b[4]; > and there is no more build error. Ok, so the line *is* correct but the function reported by gcc isn't. This particular line was last changed way back in 2005 (check with git blame) by a commit from Marcel so I don't see how your issue could have been caused by recent changes. As I mentioned in the other email I'd expect you to provide a proper patch for this with a good commit message that explains why it is needed. Johan