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

warning: comparison between signed and unsigned integer expressions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.2.6
    • 10.2.7
    • Compiling
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.