Clear off a few compiler warnings generated when pedantic warnings are switched on.

pull/4/head
Richard Barry 14 years ago
parent ff77d82ceb
commit a12c133956

@ -1021,7 +1021,8 @@
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/FreeRTOS_Source/include}&quot;"/> <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/FreeRTOS_Source/include}&quot;"/>
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/FreeRTOS_Source/portable/GCC/MicroBlaze}&quot;"/> <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/FreeRTOS_Source/portable/GCC/MicroBlaze}&quot;"/>
</option> </option>
<option id="xilinx.gnu.compiler.misc.other.1660455181" name="Other flags" superClass="xilinx.gnu.compiler.misc.other" value="-c -fmessage-length=0 -fno-strict-aliasing" valueType="string"/> <option id="xilinx.gnu.compiler.misc.other.1660455181" name="Other flags" superClass="xilinx.gnu.compiler.misc.other" value="-c -fmessage-length=0 -fno-strict-aliasing -Wextra" valueType="string"/>
<option id="xilinx.gnu.compiler.option.warnings.pedantic.86490975" name="Pedantic (-pedantic)" superClass="xilinx.gnu.compiler.option.warnings.pedantic" value="false" valueType="boolean"/>
<inputType id="xilinx.gnu.compiler.input.505106416" name="C source files" superClass="xilinx.gnu.compiler.input"/> <inputType id="xilinx.gnu.compiler.input.505106416" name="C source files" superClass="xilinx.gnu.compiler.input"/>
</tool> </tool>
<tool id="xilinx.gnu.mb.cxx.toolchain.compiler.debug.2087155544" name="MicroBlaze g++ compiler" superClass="xilinx.gnu.mb.cxx.toolchain.compiler.debug"> <tool id="xilinx.gnu.mb.cxx.toolchain.compiler.debug.2087155544" name="MicroBlaze g++ compiler" superClass="xilinx.gnu.mb.cxx.toolchain.compiler.debug">
@ -1080,9 +1081,6 @@
</tool> </tool>
</toolChain> </toolChain>
</folderInfo> </folderInfo>
<fileInfo id="xilinx.gnu.mb.exe.debug.1890710697.1391169017.1608696955" name="fsdata.c" rcbsApplicability="disable" resourcePath="lwIP/lwIP_Apps/apps/httpserver_raw/fsdata.c" toolsToInvoke="xilinx.gnu.mb.c.toolchain.compiler.debug.1610218702.1428026378">
<tool id="xilinx.gnu.mb.c.toolchain.compiler.debug.1610218702.1428026378" name="MicroBlaze gcc compiler" superClass="xilinx.gnu.mb.c.toolchain.compiler.debug.1610218702"/>
</fileInfo>
<sourceEntries> <sourceEntries>
<entry excluding="lwIP/lwIP_Apps/apps/httpserver_raw/fsdata.c|src/xuartlite_selftest_example.c|src/xtmrctr_selftest_example.c|src/xtmrctr_intr_example.c|src/xintc_tapp_example.c|src/xgpio_tapp_example.c|src/xgpio_intr_tapp_example.c|src/xemaclite_polled_example.c|src/xemaclite_intr_example.c|src/testperiph.c|main-blinky.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/> <entry excluding="lwIP/lwIP_Apps/apps/httpserver_raw/fsdata.c|src/xuartlite_selftest_example.c|src/xtmrctr_selftest_example.c|src/xtmrctr_intr_example.c|src/xintc_tapp_example.c|src/xgpio_tapp_example.c|src/xgpio_intr_tapp_example.c|src/xemaclite_polled_example.c|src/xemaclite_intr_example.c|src/testperiph.c|main-blinky.c" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
</sourceEntries> </sourceEntries>

@ -177,6 +177,8 @@ void vRegisterTest1( void *pvParameters )
" bri 0 \n\t" \ " bri 0 \n\t" \
" nop \n\t" \ " nop \n\t" \
); );
( void ) pvParameters;
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -294,6 +296,8 @@ void vRegisterTest2( void *pvParameters )
" bri 0 \n\t" \ " bri 0 \n\t" \
" nop \n\t" \ " nop \n\t" \
); );
( void ) pvParameters;
} }

@ -125,6 +125,10 @@
#include "comtest_strings.h" #include "comtest_strings.h"
#include "TimerDemo.h" #include "TimerDemo.h"
/* lwIP includes. */
#include "lwip/tcpip.h"
/* Priorities at which the various tasks are created. */ /* Priorities at which the various tasks are created. */
#define mainQUEUE_POLL_PRIORITY ( tskIDLE_PRIORITY + 1 ) #define mainQUEUE_POLL_PRIORITY ( tskIDLE_PRIORITY + 1 )
#define mainSEM_TEST_PRIORITY ( tskIDLE_PRIORITY + 1 ) #define mainSEM_TEST_PRIORITY ( tskIDLE_PRIORITY + 1 )
@ -189,6 +193,9 @@ static void vCheckTimerCallback( xTimerHandle xTimer );
*/ */
static void prvSetupHardware( void ); static void prvSetupHardware( void );
/* Defined in lwIPApps.c. */
extern void lwIPAppsInit( void *pvArguments );
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/* The check timer callback function sets pcStatusMessage to a string that /* The check timer callback function sets pcStatusMessage to a string that
@ -217,6 +224,9 @@ int main( void )
/* Configure the interrupt controller, LED outputs and button inputs. */ /* Configure the interrupt controller, LED outputs and button inputs. */
prvSetupHardware(); prvSetupHardware();
/* This call creates the TCP/IP thread. */
tcpip_init( lwIPAppsInit, NULL );
/* Start the reg test tasks, as described in the comments at the top of this /* Start the reg test tasks, as described in the comments at the top of this
file. */ file. */
xTaskCreate( vRegisterTest1, ( const signed char * const ) "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) 0, tskIDLE_PRIORITY, NULL ); xTaskCreate( vRegisterTest1, ( const signed char * const ) "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) 0, tskIDLE_PRIORITY, NULL );
@ -472,6 +482,9 @@ void vApplicationMallocFailedHook( void )
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName ) void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{ {
( void ) pcTaskName;
( void ) pxTask;
/* vApplicationStackOverflowHook() will only be called if /* vApplicationStackOverflowHook() will only be called if
configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2. The handle and name configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2. The handle and name
of the offending task will be passed into the hook function via its of the offending task will be passed into the hook function via its
@ -509,6 +522,9 @@ static long lCheckTimerStarted = pdFALSE;
xTimerStart( xCheckTimer, mainDONT_BLOCK ); xTimerStart( xCheckTimer, mainDONT_BLOCK );
lCheckTimerStarted = pdTRUE; lCheckTimerStarted = pdTRUE;
} }
extern void vTemp( void );
vTemp();
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -526,6 +542,8 @@ void vApplicationTickHook( void )
void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump ) void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump )
{ {
( void ) xRegisterDump;
/* If configINSTALL_EXCEPTION_HANDLERS is set to 1 in FreeRTOSConfig.h, then /* If configINSTALL_EXCEPTION_HANDLERS is set to 1 in FreeRTOSConfig.h, then
the kernel will automatically install its own exception handlers before the the kernel will automatically install its own exception handlers before the
kernel is started, if the application writer has not already caused them to kernel is started, if the application writer has not already caused them to

@ -156,6 +156,8 @@ portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, po
void vSerialPutString( xComPortHandle pxPort, const signed char * const pcString, unsigned portBASE_TYPE uxStringLength ) void vSerialPutString( xComPortHandle pxPort, const signed char * const pcString, unsigned portBASE_TYPE uxStringLength )
{ {
( void ) pxPort;
/* Output uxStringLength bytes starting from pcString. */ /* Output uxStringLength bytes starting from pcString. */
XUartLite_Send( &xUartLiteInstance, ( unsigned char * ) pcString, uxStringLength ); XUartLite_Send( &xUartLiteInstance, ( unsigned char * ) pcString, uxStringLength );
} }
@ -166,6 +168,9 @@ static void prvRxHandler( void *pvUnused, unsigned portBASE_TYPE uxByteCount )
signed char cRxedChar; signed char cRxedChar;
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
( void ) pvUnused;
( void ) uxByteCount;
/* Place any received characters into the receive queue. */ /* Place any received characters into the receive queue. */
while( XUartLite_IsReceiveEmpty( xUartLiteInstance.RegBaseAddress ) == pdFALSE ) while( XUartLite_IsReceiveEmpty( xUartLiteInstance.RegBaseAddress ) == pdFALSE )
{ {
@ -186,6 +191,9 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
static void prvTxHandler( void *pvUnused, unsigned portBASE_TYPE uxByteCount ) static void prvTxHandler( void *pvUnused, unsigned portBASE_TYPE uxByteCount )
{ {
( void ) pvUnused;
( void ) uxByteCount;
/* Nothing to do here. The Xilinx library function takes care of the /* Nothing to do here. The Xilinx library function takes care of the
transmission. */ transmission. */
portNOP(); portNOP();

Loading…
Cancel
Save