base: Fix build errors with gcc 10.x
authorSandipan Das <sandipan@linux.ibm.com>
Fri, 12 Jun 2020 13:41:27 +0000 (19:11 +0530)
committerSandipan Das <sandipan@linux.ibm.com>
Mon, 22 Jun 2020 12:20:09 +0000 (12:20 +0000)
commit28a15f203d778112908633371f7bc6e96bf37fe3
treefb24ad59b9ebc4925e5f7aa6aaf3f2edb3c5f441
parent3fb1d091f5ef0496a12f369f5b5e3e8cce12bd5e
base: Fix build errors with gcc 10.x

This fixes conditions that perform a redundant check to
see if an unsigned value is greater than or equal to
zero. With gcc 10.x, this generates the following error
because of implicit usage of the "-Werror=type-limits"
flag.

"comparison of unsigned expression in '>= 0' is always true"

Change-Id: Ib1a88035ef5fba410d18de0adf614db4bc634faf
Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30474
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/statistics.hh