variable ‘something’ set but not used [-Wunused-but-set-variable]

Andrew Haley aph@redhat.com
Tue Jul 12 18:13:00 GMT 2011


On 07/12/2011 07:12 PM, Mahmood Naderan wrote:
>> The message is correct.  fullpath_length is set, but not used.
>  
> Hi
> What is this then
> 
>      fullpath_length = strlen(fullpath);     // variable is used here
> 
> isn't a usage of fullpath_length?

No, it's not.  It's a set of fullpath_length.

Andrew.



More information about the Gcc-help mailing list