From: Wolfgang Denk Date: Tue, 22 Sep 2009 23:54:03 +0200 Subject: [U-Boot] [PATCH v2] board/linkstation/ide.c: Fix compile warning In-Reply-To: <1252967162-15935-1-git-send-email-wd@denx.de> References: <20090911175411.GC13783@b07421-ec1.am.freescale.net> <1252967162-15935-1-git-send-email-wd@denx.de> Message-ID: <20090922215403.BF3EE832E864@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1252967162-15935-1-git-send-email-wd@denx.de> you wrote: > Fix warning: ide.c:60: warning: dereferencing type-punned pointer will > break strict-aliasing rules > > Signed-off-by: Wolfgang Denk > Cc: Guennadi Liakhovetski > > --- > v2: Better implementation as suggested by Scott Wood in > http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/67840/focus=67891 > > board/linkstation/ide.c | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) Applied. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de ...computer hardware progress is so fast. No other technology since civilization began has seen six orders of magnitude in performance- price gain in 30 years. - Fred Brooks, Jr.