darwin-user: Use GCC_FMT_ATTR (format checking)
The redundant forward declaration of qerror in machload.c is removed because it should be taken from qemu.h. Please note that this patch is untested because I have no matching environment to compile it. Cc: Blue Swirl <blauwirbel@gmail.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
		
							parent
							
								
									ab9de3692e
								
							
						
					
					
						commit
						edcdd562ba
					
				@ -82,7 +82,7 @@ void *macho_text_sect = 0;
 | 
				
			|||||||
int   macho_offset = 0;
 | 
					int   macho_offset = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int load_object(const char *filename, struct target_pt_regs * regs, void ** mh);
 | 
					int load_object(const char *filename, struct target_pt_regs * regs, void ** mh);
 | 
				
			||||||
void qerror(const char *format, ...);
 | 
					
 | 
				
			||||||
#ifdef TARGET_I386
 | 
					#ifdef TARGET_I386
 | 
				
			||||||
typedef struct mach_i386_thread_state {
 | 
					typedef struct mach_i386_thread_state {
 | 
				
			||||||
    unsigned int    eax;
 | 
					    unsigned int    eax;
 | 
				
			||||||
 | 
				
			|||||||
@ -100,7 +100,7 @@ int do_sigaction(int sig, const struct sigaction *act,
 | 
				
			|||||||
int do_sigaltstack(const struct sigaltstack *ss, struct sigaltstack *oss);
 | 
					int do_sigaltstack(const struct sigaltstack *ss, struct sigaltstack *oss);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
 | 
					void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
 | 
				
			||||||
void qerror(const char *fmt, ...);
 | 
					void qerror(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void write_dt(void *ptr, unsigned long addr, unsigned long limit, int flags);
 | 
					void write_dt(void *ptr, unsigned long addr, unsigned long limit, int flags);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user