Skip to contentSkip to conversation

suppress const casting warning in common/fpga.c

PATCH New eran.liberty at gmail.com 2 participants 2 messages Jul 3, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 suppress const casting warning in common/fpga.c

suppress some compiler warnings regarding const implicit conversion removed dead code

fpga.c +1 -5
Index: common/fpga.c
===================================================================
@@ -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
#1 lore raw

PATCH 1/1 suppress const casting warning in common/fpga.c

Quoted 4 lines · eran.liberty at gmail.com

suppress some compiler warnings regarding const implicit conversion removed dead code

Quoted 37 lines

Index: common/fpga.c
===================================================================

fpga.c (.../branches/exsw6000) (revision 69) renamed from fpga.c (.../tags/trunk/20070620_2_merge_to_exsw6000) (revision 69) +1 -6
@@ -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
 
 
-------------------------------------------------------------------------

This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Signature · 4 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195