Enable "missing prototypes" warning for gcc, clang
Missing prototypes for exported functions cause a really huge issue on Windows. Enabling the "missing prototypes" warning makes it much easier to catch this problem. Naturally, any warnings caused by this have been fixed. Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
		
							parent
							
								
									a4d8aba4f9
								
							
						
					
					
						commit
						32b683bf37
					
				
					 26 changed files with 92 additions and 304 deletions
				
			
		| 
						 | 
				
			
			@ -65,7 +65,7 @@ typedef struct {
 | 
			
		|||
  ddsrt_threadattr_t *attr;
 | 
			
		||||
} thread_arg_t;
 | 
			
		||||
 | 
			
		||||
uint32_t thread_main(void *ptr)
 | 
			
		||||
static uint32_t thread_main(void *ptr)
 | 
			
		||||
{
 | 
			
		||||
  thread_arg_t *arg = (thread_arg_t *)ptr;
 | 
			
		||||
  ddsrt_threadattr_t *attr;
 | 
			
		||||
| 
						 | 
				
			
			@ -193,7 +193,7 @@ CU_Test(ddsrt_thread, thread_id)
 | 
			
		|||
 | 
			
		||||
static ddsrt_mutex_t locks[2];
 | 
			
		||||
 | 
			
		||||
uint32_t thread_main_waitforme(void *ptr)
 | 
			
		||||
static uint32_t thread_main_waitforme(void *ptr)
 | 
			
		||||
{
 | 
			
		||||
  uint32_t ret = 0;
 | 
			
		||||
  (void)ptr;
 | 
			
		||||
| 
						 | 
				
			
			@ -203,7 +203,7 @@ uint32_t thread_main_waitforme(void *ptr)
 | 
			
		|||
  return ret;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
uint32_t thread_main_waitforit(void *ptr)
 | 
			
		||||
static uint32_t thread_main_waitforit(void *ptr)
 | 
			
		||||
{
 | 
			
		||||
  uint32_t res = 0;
 | 
			
		||||
  ddsrt_thread_t *thr = (ddsrt_thread_t *)ptr;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue