This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 1x -Werror=unused-variable happens :-)
- From: "U.Mutlu" <um at mutluit dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 23 Jun 2018 14:10:04 +0200
- Subject: Re: 1x -Werror=unused-variable happens :-)
- References: <5B2E3145.8030000@mutluit.com>
Here's another one, but different error type, for further inspection, in the
same library as before:
../../../gcc_trunk/libitm/method-ml.cc: In member function 'virtual bool
{anonymous}::ml_wt_dispatch::supports(unsigned int)':
../../../gcc_trunk/libitm/method-ml.cc:650:35: error: comparison is always
true due to limited range of data type [-Werror=type-limits]
return (number_of_threads * 2 <= ml_mg::OVERFLOW_RESERVE);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Btw, this happens on a x86_64 host/target.
--
U.Mutlu