1x -Werror=unused-variable happens :-)

U.Mutlu um@mutluit.com
Sun Jun 24 06:13:00 GMT 2018


U.Mutlu wrote on 06/23/2018 02:10 PM:
> 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.


Ok, a bugzilla bug report entry for this has just been filed:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86294




More information about the Gcc mailing list