fixed warning when compiled with -Wextra
changed len (length of message in drawmsg) to unsigned int, since a length can't be negative and the variable will be compared to another unsigned int.
This commit is contained in:
		
							parent
							
								
									f54975ba13
								
							
						
					
					
						commit
						6cec7aa72d
					
				
							
								
								
									
										2
									
								
								dunst.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dunst.c
									
									
									
									
									
								
							| @ -236,7 +236,7 @@ delete_msg(msg_queue_t *elem) { | |||||||
| void | void | ||||||
| drawmsg(void) { | drawmsg(void) { | ||||||
|     int width, x, y, height, i; |     int width, x, y, height, i; | ||||||
|     int len = list_len(msgqueue); |     unsigned int len = list_len(msgqueue); | ||||||
|     msg_queue_t *cur_msg = msgqueue; |     msg_queue_t *cur_msg = msgqueue; | ||||||
|     dc->x = 0; |     dc->x = 0; | ||||||
|     dc->y = 0; |     dc->y = 0; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sascha Kruse
						Sascha Kruse