[MPlayer-dev-eng] [PATCHES] 4 small patches for various code improvements

Laurent Aimar fenrir at elivagar.org
Thu Nov 25 15:45:43 CET 2010


Hi,

On Thu, Nov 25, 2010 at 09:22:21AM +0100, Alexander Roalter wrote:
> Am 24.11.2010 22:01, schrieb Clément B??sch:
>>   int
>>   nop_streaming_seek( int fd, off_t pos, streaming_ctrl_t *stream_ctrl ) {
>>   	return -1;
>> -	// To shut up gcc warning
>> -	fd++;
>> -	pos++;
>> -	stream_ctrl=NULL;
>>   }
>
>
> One can also shup up the warning by using a nameless declaration (only  
> types):
 I think that's valid only for C++.
 But another way (without side effects) is to cast using (void) like:
(void)fd;

-- 
fenrir



More information about the MPlayer-dev-eng mailing list