mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 02:15:42 +01:00 
			
		
		
		
	add an extra #ifdef WEBP_EXPERIMENTAL_FEATURES to avoid 'unused variable' warning
Change-Id: I8a42781eab1fad75e13cb85ac3f768d2405726e0
This commit is contained in:
		| @@ -186,7 +186,9 @@ static size_t GeneratePartition0(VP8Encoder* const enc) { | |||||||
|   VP8BitWriter* const bw = &enc->bw_; |   VP8BitWriter* const bw = &enc->bw_; | ||||||
|   const int mb_size = enc->mb_w_ * enc->mb_h_; |   const int mb_size = enc->mb_w_ * enc->mb_h_; | ||||||
|   uint64_t pos1, pos2, pos3; |   uint64_t pos1, pos2, pos3; | ||||||
|  | #ifdef WEBP_EXPERIMENTAL_FEATURES | ||||||
|   const int need_extensions = (enc->alpha_data_size_ > 0); |   const int need_extensions = (enc->alpha_data_size_ > 0); | ||||||
|  | #endif | ||||||
|  |  | ||||||
|   pos1 = VP8BitWriterPos(bw); |   pos1 = VP8BitWriterPos(bw); | ||||||
|   VP8BitWriterInit(bw, mb_size * 7 / 8);        // ~7 bits per macroblock |   VP8BitWriterInit(bw, mb_size * 7 / 8);        // ~7 bits per macroblock | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user