From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Wed, 23 Nov 2011 09:28:09 +0100 Subject: [U-Boot] [PATCH v2 09/12] drivers/i2c/davinci_i2c.c: Fix GCC 4.6 warning In-Reply-To: <20111123091240.12c2b423@wker> References: <1321399263-13826-10-git-send-email-agust@denx.de> <1321707098-14428-1-git-send-email-agust@denx.de> <20111123091240.12c2b423@wker> Message-ID: <4ECCAE99.9040708@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 Hello Anatolij, Anatolij Gustschin wrote: > Hello Heiko, > > On Sat, 19 Nov 2011 13:51:38 +0100 > Anatolij Gustschin wrote: > >> Fix: >> davinci_i2c.c: In function 'flush_rx': >> davinci_i2c.c:81:6: warning: variable 'dummy' set but not used >> [-Wunused-but-set-variable] >> >> Signed-off-by: Anatolij Gustschin >> Acked-by: Heiko Schocher >> --- >> v2: >> - drop void cast since REG() is not a function call but >> expands to (*(volatile unsigned int *)(I2C_DDR)) >> and thus we don't need to indicate that return value is ignored >> intentionally >> >> drivers/i2c/davinci_i2c.c | 4 +--- >> 1 files changed, 1 insertions(+), 3 deletions(-) > > Could you apply this patch, too? Thanks! Had this on my Todo list ;-) done. Thanks! bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany