Re: [gem5-users] Constant Defined but not Used

2017-07-14 Thread Alec Roelke
Yeah, that's what I figured. But I was also under the impression that const was supposed to ignore that, and I believe static const and const are supposed to be the same thing. I did try using static const for one of the constants, but it still gave me the defined but not used error. The only th

Re: [gem5-users] Constant Defined but not Used

2017-07-14 Thread Jason Lowe-Power
Hi Alec, I'm not sure if this really answers your question, but there are a number of places in the code where for different compiler options some variables are unused. This often happens when doing debug checks (e.g., asserts) which are removed when compiling fast mode. To ignore these warnings f

[gem5-users] Constant Defined but not Used

2017-07-13 Thread Alec Roelke
Hi Everyone, Lately when I've been trying to build gem5.opt for RISC-V, I've been getting an error that three of the scalar constants defined in registers.hh are 'defined but not used' (one of which definitely is used in faults.cc). I've been under the impression that g++ is supposed to ignore thi