From 12eb0343784f52994110df7e7fce4a0b639a6ec3 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 11 Jan 2016 05:52:20 -0500 Subject: scons: Enable -Wextra by default Make best use of the compiler, and enable -Wextra as well as -Wall. There are a few issues that had to be resolved, but they are all trivial. --- src/cpu/pred/sat_counter.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/pred') diff --git a/src/cpu/pred/sat_counter.hh b/src/cpu/pred/sat_counter.hh index 1294a4e08..4721a3f9f 100644 --- a/src/cpu/pred/sat_counter.hh +++ b/src/cpu/pred/sat_counter.hh @@ -105,7 +105,7 @@ class SatCounter /** * Read the counter's value. */ - const uint8_t read() const + uint8_t read() const { return counter; } private: -- cgit v1.2.3