]> git.sur5r.net Git - freertos/commitdiff
Clear off a few compiler warnings generated when pedantic warnings are switched on.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 27 Jul 2011 12:05:56 +0000 (12:05 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Wed, 27 Jul 2011 12:05:56 +0000 (12:05 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1507 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/.cproject
Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/RegisterTests.c
Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/main-full.c
Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemoSource/serial.c

index c911170fc145934f46f5545c51975dff24ac1ebe..ac423a0b04670467aa1432cca77e7ab4d354aaf7 100644 (file)
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/FreeRTOS_Source/include}&quot;"/>\r
                                                                        <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/FreeRTOS_Source/portable/GCC/MicroBlaze}&quot;"/>\r
                                                                </option>\r
-                                                               <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"/>\r
+                                                               <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"/>\r
+                                                               <option id="xilinx.gnu.compiler.option.warnings.pedantic.86490975" name="Pedantic (-pedantic)" superClass="xilinx.gnu.compiler.option.warnings.pedantic" value="false" valueType="boolean"/>\r
                                                                <inputType id="xilinx.gnu.compiler.input.505106416" name="C source files" superClass="xilinx.gnu.compiler.input"/>\r
                                                        </tool>\r
                                                        <tool id="xilinx.gnu.mb.cxx.toolchain.compiler.debug.2087155544" name="MicroBlaze g++ compiler" superClass="xilinx.gnu.mb.cxx.toolchain.compiler.debug">\r
                                                        </tool>\r
                                                </toolChain>\r
                                        </folderInfo>\r
-                                       <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">\r
-                                               <tool id="xilinx.gnu.mb.c.toolchain.compiler.debug.1610218702.1428026378" name="MicroBlaze gcc compiler" superClass="xilinx.gnu.mb.c.toolchain.compiler.debug.1610218702"/>\r
-                                       </fileInfo>\r
                                        <sourceEntries>\r
                                                <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=""/>\r
                                        </sourceEntries>\r
index 1aa696a939ad138e8c3c4548320caca5fc014faa..1302a094f54fc267d1608104ee50bc37e45366cb 100644 (file)
@@ -177,6 +177,8 @@ void vRegisterTest1( void *pvParameters )
                                        "       bri 0                           \n\t" \\r
                                        "       nop                                     \n\t" \\r
                                 );\r
+\r
+       ( void ) pvParameters;\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -294,6 +296,8 @@ void vRegisterTest2( void *pvParameters )
                                        "       bri 0                           \n\t" \\r
                                        "       nop                                     \n\t" \\r
                                 );\r
+\r
+       ( void ) pvParameters;\r
 }\r
 \r
 \r
index fcca9f59936dbebc4314ffbc83c7bcbb25665c12..059dfdd83caa50af7481415a58866a2e15f17857 100644 (file)
 #include "comtest_strings.h"\r
 #include "TimerDemo.h"\r
 \r
+/* lwIP includes. */\r
+#include "lwip/tcpip.h"\r
+\r
+\r
 /* Priorities at which the various tasks are created. */\r
 #define mainQUEUE_POLL_PRIORITY                ( tskIDLE_PRIORITY + 1 )\r
 #define mainSEM_TEST_PRIORITY          ( tskIDLE_PRIORITY + 1 )\r
@@ -189,6 +193,9 @@ static void vCheckTimerCallback( xTimerHandle xTimer );
  */\r
 static void prvSetupHardware( void );\r
 \r
+/* Defined in lwIPApps.c. */\r
+extern void lwIPAppsInit( void *pvArguments );\r
+\r
 /*-----------------------------------------------------------*/\r
 \r
 /* The check timer callback function sets pcStatusMessage to a string that\r
@@ -217,6 +224,9 @@ int main( void )
        /* Configure the interrupt controller, LED outputs and button inputs. */\r
        prvSetupHardware();\r
 \r
+       /* This call creates the TCP/IP thread. */\r
+       tcpip_init( lwIPAppsInit, NULL );\r
+\r
        /* Start the reg test tasks, as described in the comments at the top of this\r
        file. */\r
        xTaskCreate( vRegisterTest1, ( const signed char * const ) "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) 0, tskIDLE_PRIORITY, NULL );\r
@@ -472,6 +482,9 @@ void vApplicationMallocFailedHook( void )
 \r
 void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )\r
 {\r
+       ( void ) pcTaskName;\r
+       ( void ) pxTask;\r
+\r
        /* vApplicationStackOverflowHook() will only be called if\r
        configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2.  The handle and name\r
        of the offending task will be passed into the hook function via its \r
@@ -509,6 +522,9 @@ static long lCheckTimerStarted = pdFALSE;
                xTimerStart( xCheckTimer, mainDONT_BLOCK ); \r
                lCheckTimerStarted = pdTRUE;\r
        }\r
+\r
+       extern void vTemp( void );\r
+       vTemp();\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -526,6 +542,8 @@ void vApplicationTickHook( void )
 \r
 void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump )\r
 {\r
+       ( void ) xRegisterDump;\r
+\r
        /* If configINSTALL_EXCEPTION_HANDLERS is set to 1 in FreeRTOSConfig.h, then \r
        the kernel will automatically install its own exception handlers before the \r
        kernel is started, if the application writer has not already caused them to \r
index 66df57eb71bd307e8ff0b1dfa49ecb6b20958493..9d673a55e4e4546fa0e177c4ac2d5a11506e2dfa 100644 (file)
@@ -156,6 +156,8 @@ portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, po
 \r
 void vSerialPutString( xComPortHandle pxPort, const signed char * const pcString, unsigned portBASE_TYPE uxStringLength )\r
 {\r
+       ( void ) pxPort;\r
+\r
        /* Output uxStringLength bytes starting from pcString. */\r
        XUartLite_Send( &xUartLiteInstance, ( unsigned char * ) pcString, uxStringLength );\r
 }\r
@@ -166,6 +168,9 @@ static void prvRxHandler( void *pvUnused, unsigned portBASE_TYPE uxByteCount )
 signed char cRxedChar;\r
 portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;\r
 \r
+       ( void ) pvUnused;\r
+       ( void ) uxByteCount;\r
+\r
        /* Place any received characters into the receive queue. */\r
        while( XUartLite_IsReceiveEmpty( xUartLiteInstance.RegBaseAddress ) == pdFALSE )\r
        {\r
@@ -186,6 +191,9 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
 \r
 static void prvTxHandler( void *pvUnused, unsigned portBASE_TYPE uxByteCount )\r
 {\r
+       ( void ) pvUnused;\r
+       ( void ) uxByteCount;\r
+\r
        /* Nothing to do here.  The Xilinx library function takes care of the\r
        transmission. */\r
        portNOP();\r