I think the idea was marking the variable as used and thus disabling the unused 
warning. I can see your argument however. If you're motivated to change it 
everywhere I wouldn't object.

Ali



On Jan 18, 2012, at 1:32 PM, Paul Rosenfeld wrote:

> I was perusing the code and I stumbled on this little tidbit:
> 
> #define M5_VAR_USED __attribute__((unused))
> 
> Does it seem confusing to anyone else that the macro name implies that the 
> variable is used, but then the definition tells gcc that probably the 
> variable will be unused?
> 
> I am just curious if I'm missing something here. 
> 
> Thanks, 
> Paul
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to