Re-enable cppcheck static analysis unused function checks after adding in special...
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 25 Mar 2012 12:12:08 +0000 (12:12 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 25 Mar 2012 12:12:08 +0000 (12:12 +0000)
Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
BuildTests/StaticAnalysisTest/makefile
Demos/Device/ClassDriver/AudioInput/AudioInput.h
Demos/Device/ClassDriver/AudioOutput/AudioOutput.h
LUFA/DoxygenPages/LUFAPoweredProjects.txt
LUFA/Drivers/USB/Class/Device/AudioClassDevice.c
LUFA/Drivers/USB/Class/Device/CDCClassDevice.c
LUFA/Drivers/USB/Class/Host/CDCClassHost.c
LUFA/Drivers/USB/Core/Events.c

index 200f406..6063e19 100644 (file)
@@ -395,17 +395,6 @@ int write_usb_device(HANDLE h, void *buf, int len, int timeout)
        return 1;
 }
 
        return 1;
 }
 
-void print_win32_err(void)
-{
-        char buf[256];
-        DWORD err;
-
-        err = GetLastError();
-        FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, err,
-                0, buf, sizeof(buf), NULL);
-        printf("err %ld: %s\n", err, buf);
-}
-
 static HANDLE win32_teensy_handle = NULL;
 
 int teensy_open(void)
 static HANDLE win32_teensy_handle = NULL;
 
 int teensy_open(void)
index 474b259..d447d19 100644 (file)
@@ -21,7 +21,6 @@ MESSAGE_TEMPLATE  = "{file}:{line}: {severity} ({id}): {message}"
 \r
 # Checks to suppress so that generated warnings are discarded\r
 SUPPRESS_WARNINGS = variableScope     \\r
 \r
 # Checks to suppress so that generated warnings are discarded\r
 SUPPRESS_WARNINGS = variableScope     \\r
-                    unusedFunction    \\r
                     missingInclude\r
 \r
 # Extra paths to search for include files\r
                     missingInclude\r
 \r
 # Extra paths to search for include files\r
index 8a6812c..8eac645 100644 (file)
                void EVENT_USB_Device_Disconnect(void);
                void EVENT_USB_Device_ConfigurationChanged(void);
                void EVENT_USB_Device_ControlRequest(void);
                void EVENT_USB_Device_Disconnect(void);
                void EVENT_USB_Device_ConfigurationChanged(void);
                void EVENT_USB_Device_ControlRequest(void);
-
+               
+               void CALLBACK_Audio_Device_GetSetEndpointProperty(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo,
+                                                          const uint8_t Property,
+                                                          const uint8_t EntityAddress,
+                                                          const uint16_t Parameter,
+                                                          uint16_t* const DataLength,
+                                                          uint8_t* Data);
+               bool CALLBACK_Audio_Device_GetSetInterfaceProperty(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo,
+                                                                  const uint8_t Property,
+                                                                  const uint8_t EntityAddress,
+                                                                  const uint16_t Parameter,
+                                                                  uint16_t* const DataLength,
+                                                                  uint8_t* Data);
 #endif
 
 #endif
 
index ce31499..a26402c 100644 (file)
                void EVENT_USB_Device_ConfigurationChanged(void);
                void EVENT_USB_Device_ControlRequest(void);
 
                void EVENT_USB_Device_ConfigurationChanged(void);
                void EVENT_USB_Device_ControlRequest(void);
 
+               void CALLBACK_Audio_Device_GetSetEndpointProperty(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo,
+                                                          const uint8_t Property,
+                                                          const uint8_t EntityAddress,
+                                                          const uint16_t Parameter,
+                                                          uint16_t* const DataLength,
+                                                          uint8_t* Data);
+               bool CALLBACK_Audio_Device_GetSetInterfaceProperty(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo,
+                                                                  const uint8_t Property,
+                                                                  const uint8_t EntityAddress,
+                                                                  const uint16_t Parameter,
+                                                                  uint16_t* const DataLength,
+                                                                  uint8_t* Data);              
 #endif
 
 #endif
 
index be54650..fea7deb 100644 (file)
@@ -36,7 +36,6 @@
  *  The following are known hobbyist projects using LUFA. Most are open source, and show off interesting ways that the LUFA library
  *  can be incorporated into many different applications.
  *
  *  The following are known hobbyist projects using LUFA. Most are open source, and show off interesting ways that the LUFA library
  *  can be incorporated into many different applications.
  *
- *  - Accelerometer Game Joystick: http://www.crictor.co.il/he/episodes/joystick/
  *  - Arcade Controller: http://fletchtronics.net/arcade-controller-made-petunia
  *  - Arcade Joystick: http://jamie.lentin.co.uk/embedded/arcade-joystick/
  *  - AttoBasic AVR BASIC interpreter: http://www.cappels.org/dproj/AttoBasic2_1/AttoBasic_2.1_with_USB_and_Arduino_support.html
  *  - Arcade Controller: http://fletchtronics.net/arcade-controller-made-petunia
  *  - Arcade Joystick: http://jamie.lentin.co.uk/embedded/arcade-joystick/
  *  - AttoBasic AVR BASIC interpreter: http://www.cappels.org/dproj/AttoBasic2_1/AttoBasic_2.1_with_USB_and_Arduino_support.html
index 7a1f4b2..15fcd58 100644 (file)
@@ -211,6 +211,7 @@ bool Audio_Device_ConfigureEndpoints(USB_ClassInfo_Audio_Device_t* const AudioIn
        return true;
 }
 
        return true;
 }
 
+// cppcheck-suppress unusedFunction
 void Audio_Device_Event_Stub(void)
 {
 
 void Audio_Device_Event_Stub(void)
 {
 
index f0ddfcd..5b53438 100644 (file)
@@ -352,6 +352,7 @@ static int CDC_Device_getchar_Blocking(FILE* Stream)
 }
 #endif
 
 }
 #endif
 
+// cppcheck-suppress unusedFunction
 void CDC_Device_Event_Stub(void)
 {
 
 void CDC_Device_Event_Stub(void)
 {
 
index e1a972f..63df6b0 100644 (file)
@@ -504,6 +504,7 @@ static int CDC_Host_getchar_Blocking(FILE* Stream)
 }
 #endif
 
 }
 #endif
 
+// cppcheck-suppress unusedFunction
 void CDC_Host_Event_Stub(void)
 {
 
 void CDC_Host_Event_Stub(void)
 {
 
index 5733aa8..2271565 100644 (file)
@@ -32,6 +32,7 @@
 #define  __INCLUDE_FROM_USB_DRIVER
 #include "Events.h"
 
 #define  __INCLUDE_FROM_USB_DRIVER
 #include "Events.h"
 
+// cppcheck-suppress unusedFunction
 void USB_Event_Stub(void)
 {
 
 void USB_Event_Stub(void)
 {