1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Fixed pinprocfw compile warnings.

This commit is contained in:
preble
2011-02-02 21:51:39 -05:00
parent 9af691d70a
commit 9adb4c6c6b

View File

@@ -306,7 +306,7 @@ TXsvfDoCmdFuncPtr xsvf_pfDoCmd[] =
}; };
#ifdef DEBUG_MODE #ifdef DEBUG_MODE
char* xsvf_pzCommandName[] = const char* xsvf_pzCommandName[] =
{ {
"XCOMPLETE", "XCOMPLETE",
"XTDOMASK", "XTDOMASK",
@@ -334,7 +334,7 @@ TXsvfDoCmdFuncPtr xsvf_pfDoCmd[] =
"XWAIT" "XWAIT"
}; };
char* xsvf_pzErrorName[] = const char* xsvf_pzErrorName[] =
{ {
"No error", "No error",
"ERROR: Unknown", "ERROR: Unknown",
@@ -345,7 +345,7 @@ TXsvfDoCmdFuncPtr xsvf_pfDoCmd[] =
"ERROR: Data overflows allocated MAX_LEN buffer size" "ERROR: Data overflows allocated MAX_LEN buffer size"
}; };
char* xsvf_pzTapState[] = const char* xsvf_pzTapState[] =
{ {
"RESET", /* 0x00 */ "RESET", /* 0x00 */
"RUNTEST/IDLE", /* 0x01 */ "RUNTEST/IDLE", /* 0x01 */
@@ -411,7 +411,7 @@ void xsvfPrintLenVal( lenVal *plv )
int xsvfInfoInit( SXsvfInfo* pXsvfInfo ) int xsvfInfoInit( SXsvfInfo* pXsvfInfo )
{ {
XSVFDBG_PRINTF1( 4, " sizeof( SXsvfInfo ) = %d bytes\n", XSVFDBG_PRINTF1( 4, " sizeof( SXsvfInfo ) = %d bytes\n",
sizeof( SXsvfInfo ) ); (int)sizeof( SXsvfInfo ) );
pXsvfInfo->ucComplete = 0; pXsvfInfo->ucComplete = 0;
pXsvfInfo->ucCommand = XCOMPLETE; pXsvfInfo->ucCommand = XCOMPLETE;
@@ -489,7 +489,7 @@ void setPort(short p,short val)
if (p==TCK) { if (p==TCK) {
g_iTCK = val; g_iTCK = val;
} }
uint32_t buffer[1]; //unused: uint32_t buffer[1];
// Set up the data and mask bits depending on which bit is being changed. // Set up the data and mask bits depending on which bit is being changed.
jtagOutputs.tckMask = p==TCK; jtagOutputs.tckMask = p==TCK;
@@ -812,11 +812,11 @@ void xsvfShiftOnly( long lNumBits,
{ {
unsigned char* pucTdi; unsigned char* pucTdi;
unsigned char* pucTdo; unsigned char* pucTdo;
unsigned char ucTdiByte; //unused: unsigned char ucTdiByte;
unsigned char ucTdoByte; //unused: unsigned char ucTdoByte;
unsigned char ucTdoBit; //unused: unsigned char ucTdoBit;
int i; int i;
int byteCtr; //unused: int byteCtr;
uint32_t dataBuffer[512]; uint32_t dataBuffer[512];
uint32_t tempWord1 = 0, tempWord2 = 0; uint32_t tempWord1 = 0, tempWord2 = 0;
int numBytes, numWords; int numBytes, numWords;
@@ -1271,7 +1271,7 @@ int xsvfDoXSIR2( SXsvfInfo* pXsvfInfo )
readVal( &(pXsvfInfo->lvTdi), 2 ); readVal( &(pXsvfInfo->lvTdi), 2 );
lShiftIrBits = value( &(pXsvfInfo->lvTdi) ); lShiftIrBits = value( &(pXsvfInfo->lvTdi) );
sShiftIrBytes = xsvfGetAsNumBytes( lShiftIrBits ); sShiftIrBytes = xsvfGetAsNumBytes( lShiftIrBits );
XSVFDBG_PRINTF1( 3, " XSIR2 length = %d\n", lShiftIrBits); XSVFDBG_PRINTF1( 3, " XSIR2 length = %d\n", (int)lShiftIrBits);
if ( sShiftIrBytes > MAX_LEN ) if ( sShiftIrBytes > MAX_LEN )
{ {