This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: variable âsomethingâ set but not use d [-Wunused-but-set-variable]


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]