handler/ha_innodb.cc:4952: error: comparison of unsigned expression >= 0 is always true

Bug #766266 reported by Philip Stoev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
High
Laurynas Biveinis
5.1
Fix Released
High
Laurynas Biveinis
5.5
Fix Released
High
Laurynas Biveinis

Bug Description

Percona-Server-5.1.56 as downloaded from

http://www.percona.com/redir/downloads/Percona-Server-5.1/Percona-Server-5.1.56-12.7/source/Percona-Server-5.1.56.tar.gz

does not compile with ./BUILD/compile-pentium-debug-max-no-ndb:

libtool: compile: ccache gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I../../include -I../../regex -I../../storage/innobase/include -I../../sql -I. -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Werror -Wdeclaration-after-statement -DMYSQL_DYNAMIC_PLUGIN -g -DSAFE_MUTEX -DSAFEMALLOC -Wall -Wextra -Wunused -Wwrite-strings -mtune=native -DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX -DUNIV_LINUX -DUNIV_LINUX -MT ha_innodb_la-ut0ut.lo -MD -MP -MF .deps/ha_innodb_la-ut0ut.Tpo -c ut/ut0ut.c -o ha_innodb_la-ut0ut.o >/dev/null 2>&1
mv -f .deps/ha_innodb_la-ut0rnd.Tpo .deps/ha_innodb_la-ut0rnd.Plo
mv -f .deps/ha_innodb_la-ut0vec.Tpo .deps/ha_innodb_la-ut0vec.Plo
mv -f .deps/ha_innodb_la-ut0wqueue.Tpo .deps/ha_innodb_la-ut0wqueue.Plo
mv -f .deps/ha_innodb_la-ut0ut.Tpo .deps/ha_innodb_la-ut0ut.Plo
cc1plus: warnings being treated as errors
handler/ha_innodb.cc: In member function ‘int ha_innobase::general_fetch(uchar*, uint, uint)’:
handler/ha_innodb.cc:4952: error: comparison of unsigned expression >= 0 is always true

Related branches

Revision history for this message
Philip Stoev (pstoev-askmonty) wrote :

[philips@eve ~]$ uname -a
Linux eve 2.6.33.3-85.fc13.i686.PAE #1 SMP Thu May 6 18:27:11 UTC 2010 i686 i686 i386 GNU/Linux
[philips@eve ~]$ gcc --version
gcc (GCC) 4.4.5 20101112 (Red Hat 4.4.5-2)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[philips@eve ~]$ cat /etc/issue.net
Fedora release 13 (Goddard)

Stewart Smith (stewart)
Changed in percona-server:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Alexey Kopytov (akopytov) wrote :

compile-pentium-debug-max-no-ndb will fail even if the reported warning is fixed, because that includes embedded which is not supported and is currently broken as a result. Bug #673583.

Revision history for this message
Stewart Smith (stewart) wrote : Re: [Bug 766266] Re: handler/ha_innodb.cc:4952: error: comparison of unsigned expression >= 0 is always true

On Thu, 19 May 2011 11:37:19 -0000, Alexey Kopytov <email address hidden> wrote:
> compile-pentium-debug-max-no-ndb will fail even if the reported warning
> is fixed, because that includes embedded which is not supported and is
> currently broken as a result. Bug #673583.

ack. could just be due to more modern GCC?

--
Stewart Smith

Revision history for this message
Alexey Kopytov (akopytov) wrote :

Might be a recently introduced one.

Stewart Smith (stewart)
Changed in percona-server:
status: Confirmed → Triaged
Changed in percona-server:
assignee: nobody → Laurynas Biveinis (laurynas-biveinis)
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-474

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.