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
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
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