From: eran.liberty at gmail.com Date: Tue, 03 Jul 2007 16:22:42 -0000 Subject: [U-Boot-Users] [PATCH] suppress const casting warning in common/fpga.c Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de suppress some compiler warnings regarding const implicit conversion removed dead code Signed-off-by: Eran Liberty Index: common/fpga.c =================================================================== --- common/fpga.c (.../tags/trunk/20070620_2_merge_to_exsw6000) (revision 69) +++ common/fpga.c (.../branches/exsw6000) (revision 69) @@ -64,7 +64,7 @@ /* fpga_no_sup * 'no support' message function */ -static void fpga_no_sup( char *fn, char *msg ) +static void fpga_no_sup (const char *fn, const char *msg) { if ( fn && msg ) { printf( "%s: No support for %s. CONFIG_FPGA defined as 0x%x.\n", @@ -207,10 +207,6 @@ memset( desc_table, 0, sizeof(desc_table)); PRINTF( "%s: CONFIG_FPGA = 0x%x\n", __FUNCTION__, CONFIG_FPGA ); -#if 0 - PRINTF( "%s: CFG_FPGA_XILINX = 0x%x\n", __FUNCTION__, CFG_FPGA_XILINX ); - PRINTF( "%s: CFG_FPGA_ALTERA = 0x%x\n", __FUNCTION__, CFG_FPGA_ALTERA ); -#endif } /* fpga_count