hw/xwin: Fix compilation with -Werror=declaration-after-statement
xevents.c: In function 'winClipboardInitMonitoredSelections':
xevents.c:129:5: error: 'for' loop initial declarations are only allowed in C99 mode
     for (int i = 0; i < CLIP_NUM_SELECTIONS; ++i)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
			
			
This commit is contained in:
		
							parent
							
								
									97c3298caa
								
							
						
					
					
						commit
						329e8125aa
					
				| 
						 | 
					@ -126,7 +126,8 @@ void
 | 
				
			||||||
winClipboardInitMonitoredSelections(void)
 | 
					winClipboardInitMonitoredSelections(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    /* Initialize static variables */
 | 
					    /* Initialize static variables */
 | 
				
			||||||
    for (int i = 0; i < CLIP_NUM_SELECTIONS; ++i)
 | 
					    int i;
 | 
				
			||||||
 | 
					    for (i = 0; i < CLIP_NUM_SELECTIONS; ++i)
 | 
				
			||||||
      s_iOwners[i] = None;
 | 
					      s_iOwners[i] = None;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    lastOwnedSelectionIndex = CLIP_OWN_NONE;
 | 
					    lastOwnedSelectionIndex = CLIP_OWN_NONE;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue