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 this warning for values defined as const, but I've had to mark them with __attribute__ ((unused)) to get it to compile.
The only solutions I can find (define them as extern and initialize them in a .cc file) when I search for it only apply to arrays, but all the const arrays in registers.hh work fine. This error only appears for some of the scalar constants. Is anyone else having this issue? Thanks, Alec Roelke
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
