mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 20:52:09 +00:00 
			
		
		
		
	[all] use explicit void parameter lists
This makes it a compile-time error to call a function that semantically takes no parameters with a nonzero number of arguments. Previously, such code would still compile, but risk blowing up the stack if a compiler chose to use something other than caller-cleanup calling conventions.
This commit is contained in:
		 Tudor Brindus
					Tudor Brindus
				
			
				
					committed by
					
						 Geoffrey McRae
						Geoffrey McRae
					
				
			
			
				
	
			
			
			 Geoffrey McRae
						Geoffrey McRae
					
				
			
						parent
						
							dc17492750
						
					
				
				
					commit
					a46a3a2668
				
			| @@ -57,7 +57,7 @@ static const char * atomTypes[] = | ||||
|   "image/jpeg" | ||||
| }; | ||||
|  | ||||
| static const char * x11_cb_getName() | ||||
| static const char * x11_cb_getName(void) | ||||
| { | ||||
|   return "X11"; | ||||
| } | ||||
| @@ -116,7 +116,7 @@ static bool x11_cb_init( | ||||
|   return true; | ||||
| } | ||||
|  | ||||
| static void x11_cb_free() | ||||
| static void x11_cb_free(void) | ||||
| { | ||||
|   free(this); | ||||
|   this = NULL; | ||||
| @@ -432,7 +432,7 @@ static void x11_cb_notice(LG_ClipboardRequestFn requestFn, LG_ClipboardData type | ||||
|   XFlush(this->display); | ||||
| } | ||||
|  | ||||
| static void x11_cb_release() | ||||
| static void x11_cb_release(void) | ||||
| { | ||||
|   this->requestFn = NULL; | ||||
|   XSetSelectionOwner(this->display, XA_PRIMARY      , None, CurrentTime); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user