From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Thu, 29 May 2008 11:44:11 -0500 Subject: [U-Boot-Users] help with warnings and gcc-4.3.0 In-Reply-To: <33BB2AE6-1031-4381-8D4A-BE7E22E15369@kernel.crashing.org> References: <33BB2AE6-1031-4381-8D4A-BE7E22E15369@kernel.crashing.org> Message-ID: <20080529164411.GA2812@loki.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, May 29, 2008 at 11:31:28AM -0500, Kumar Gala wrote: > #define bin_at(i) ((mbinptr)((char*)&(av_[2*(i) + 2]) - 2*SIZE_SZ)) > #define next_bin(b) ((mbinptr)((char*)(b) + 2 * sizeof(mbinptr))) > #define prev_bin(b) ((mbinptr)((char*)(b) - 2 * sizeof(mbinptr))) > .. > > #define top (bin_at(0)->fd) /* The topmost chunk */ > #define last_remainder (bin_at(1)) /* remainder from last split */ > > > but I can't seem to do anything to bin_at() to make them stop. Was > wondering if anyone had any suggestions. We could compile that file with -fno-strict-aliasing, which is probably warranted anyway for the kind of pointer manipulation that malloc needs to do. -Scott