mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	load-git.c: fix warning about sscanf() argument
Type of the 4th argument is detected as "enum <anonymous> *", we cast it to (int *) when passed to sscanf(). Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									b4b16ab7ab
								
							
						
					
					
						commit
						4c5c7e1733
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -306,7 +306,7 @@ static void parse_site_geo(char *line, struct membuffer *str, void *_ds) | |||
| 	if (nr < TC_NR_CATEGORIES) { | ||||
| 		struct taxonomy *t = &ds->taxonomy.category[nr]; | ||||
| 		t->value = strdup(mb_cstring(str)); | ||||
| 		sscanf(line, "cat %d origin %d \"", &t->category, &t->origin); | ||||
| 		sscanf(line, "cat %d origin %d \"", &t->category, (int *)&t->origin); | ||||
| 		ds->taxonomy.nr++; | ||||
| 	} | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue