XQuartz: Cleanup some compiler warnings
Mark __crashreporter_info__ as __attribute__((__used__)) Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
		
							parent
							
								
									14aec8b82a
								
							
						
					
					
						commit
						14f00449eb
					
				| 
						 | 
					@ -74,7 +74,7 @@ extern int noPanoramiXExtension;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static char __crashreporter_info_buff__[4096] = {0};
 | 
					static char __crashreporter_info_buff__[4096] = {0};
 | 
				
			||||||
static const char *__crashreporter_info__ = &__crashreporter_info_buff__[0];
 | 
					static const char *__crashreporter_info__ __attribute__((__used__)) = &__crashreporter_info_buff__[0];
 | 
				
			||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
 | 
					#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
 | 
				
			||||||
// This is actually a toolchain requirement, but I'm not sure the correct check,
 | 
					// This is actually a toolchain requirement, but I'm not sure the correct check,
 | 
				
			||||||
// but it should be fine to just only include it for Leopard and later.  This line
 | 
					// but it should be fine to just only include it for Leopard and later.  This line
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								os/log.c
								
								
								
								
							
							
						
						
									
										2
									
								
								os/log.c
								
								
								
								
							| 
						 | 
					@ -121,7 +121,7 @@ static Bool needBuffer = TRUE;
 | 
				
			||||||
#include <AvailabilityMacros.h>
 | 
					#include <AvailabilityMacros.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static char __crashreporter_info_buff__[4096] = {0};
 | 
					static char __crashreporter_info_buff__[4096] = {0};
 | 
				
			||||||
static const char *__crashreporter_info__ = &__crashreporter_info_buff__[0];
 | 
					static const char *__crashreporter_info__ __attribute__((__used__)) = &__crashreporter_info_buff__[0];
 | 
				
			||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
 | 
					#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
 | 
				
			||||||
// This is actually a toolchain requirement, but I'm not sure the correct check,        
 | 
					// This is actually a toolchain requirement, but I'm not sure the correct check,        
 | 
				
			||||||
// but it should be fine to just only include it for Leopard and later.  This line
 | 
					// but it should be fine to just only include it for Leopard and later.  This line
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue