mirror of
				https://git.tukaani.org/xz.git
				synced 2025-10-31 05:22:55 +00:00 
			
		
		
		
	liblzma: Avoid compiler warning without creating extra symbol.
When the generic fast crc64 method is used, then we omit lzma_crc64_table[][]. The C standards don't allow an empty translation unit which can be avoided by declaring something, without exporting any symbols.
This commit is contained in:
		
							parent
							
								
									dce95a593e
								
							
						
					
					
						commit
						1bce6fe483
					
				| @ -18,10 +18,8 @@ | |||||||
| #if (defined(__x86_64__) && defined(__SSSE3__) \ | #if (defined(__x86_64__) && defined(__SSSE3__) \ | ||||||
| 			&& defined(__SSE4_1__) && defined(__PCLMUL__)) \ | 			&& defined(__SSE4_1__) && defined(__PCLMUL__)) \ | ||||||
| 		|| (defined(__e2k__) && __iset__ >= 6) | 		|| (defined(__e2k__) && __iset__ >= 6) | ||||||
| // No table needed but something has to be exported to keep some toolchains
 | // No table needed. Use a typedef to avoid an empty translation unit.
 | ||||||
| // happy. Also use a declaration to silence compiler warnings.
 | typedef void lzma_crc64_dummy; | ||||||
| extern const char lzma_crc64_dummy; |  | ||||||
| const char lzma_crc64_dummy; |  | ||||||
| 
 | 
 | ||||||
| #else | #else | ||||||
| // Having the declaration here silences clang -Wmissing-variable-declarations.
 | // Having the declaration here silences clang -Wmissing-variable-declarations.
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user