Re-enable cppcheck static analysis unused function checks after adding in special-case suppressions to the event stub functions. Add missing function prototypes to the AudioInput and AudioOutput class driver device demos.
This commit is contained in:
		
							parent
							
								
									0424bd4dbc
								
							
						
					
					
						commit
						00b6b0140f
					
				
					 9 changed files with 29 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -211,6 +211,7 @@ bool Audio_Device_ConfigureEndpoints(USB_ClassInfo_Audio_Device_t* const AudioIn
 | 
			
		|||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// cppcheck-suppress unusedFunction
 | 
			
		||||
void Audio_Device_Event_Stub(void)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -352,6 +352,7 @@ static int CDC_Device_getchar_Blocking(FILE* Stream)
 | 
			
		|||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// cppcheck-suppress unusedFunction
 | 
			
		||||
void CDC_Device_Event_Stub(void)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -504,6 +504,7 @@ static int CDC_Host_getchar_Blocking(FILE* Stream)
 | 
			
		|||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// cppcheck-suppress unusedFunction
 | 
			
		||||
void CDC_Host_Event_Stub(void)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,6 +32,7 @@
 | 
			
		|||
#define  __INCLUDE_FROM_USB_DRIVER
 | 
			
		||||
#include "Events.h"
 | 
			
		||||
 | 
			
		||||
// cppcheck-suppress unusedFunction
 | 
			
		||||
void USB_Event_Stub(void)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue