Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-13216

warning: comparison between signed and unsigned integer expressions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.2.6
    • Fix Version/s: 10.2.7
    • Component/s: Compiling
    • Labels:
    • Environment:
      Debian 8.8 x32 - Digitalocean

       # uname -a
      Linux framework 3.16.0-4-686-pae #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) i686 GNU/Linux

      Description

      [ 42%] Building C object libmariadb/unittest/libmariadb/CMakeFiles/connection.dir/connection.c.o
      In file included from /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/connection.c:28:0:
      /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/connection.c: In function ‘test_connection_timeout’:
      /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/connection.c:660:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      FAIL_IF(elapsed > 2 * timeout, "timeout ignored")
      ^
      /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/my_test.h:79:5: note: in definition of macro ‘FAIL_IF’
      if (expr)\
      ^
      /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/connection.c: In function ‘test_connection_timeout2’:
      /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/connection.c:680:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      FAIL_IF(elapsed > 2 * timeout, "timeout ignored")
      ^
      /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/my_test.h:79:5: note: in definition of macro ‘FAIL_IF’
      if (expr)\
      ^
      /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/connection.c: In function ‘test_connection_timeout3’:
      /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/connection.c:705:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      FAIL_IF(elapsed > timeout + 1, "timeout ignored")
      ^
      /var/tmp/mariadb_build/mariadb_src/libmariadb/unittest/libmariadb/my_test.h:79:5: note: in definition of macro ‘FAIL_IF’
      if (expr)\
      ^

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            dertin Guillermo Céspedes Tabárez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration