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

FTBFS, compile time error with GCC7

    XMLWordPrintable

Details

    Description

      Hello,
      I encountered some compile time errors while compiling with GCC7, because (most probabbly) come standards doesn't allow ceratin operation anymore.

      /builddir/build/BUILD/mariadb-10.2.5/storage/innobase/fil/fil0crypt.cc: In function 'void fil_crypt_rotate_page(const key_state_t*, rotate_thread_t*)':
      /builddir/build/BUILD/mariadb-10.2.5/storage/innobase/fil/fil0crypt.cc:1770:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
        if (space == TRX_SYS_SPACE && offset == TRX_SYS_PAGE_NO) {
                     ^~~~~~~~~~~~~
      

      /builddir/build/BUILD/mariadb-10.2.5/sql/sql_get_diagnostics.cc
      /builddir/build/BUILD/mariadb-10.2.5/storage/innobase/fil/fil0crypt.cc: In function 'void fil_crypt_rotate_page(const key_state_t*, rotate_thread_t*)':
      /builddir/build/BUILD/mariadb-10.2.5/storage/innobase/fil/fil0crypt.cc:1770:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
        if (space == TRX_SYS_SPACE && offset == TRX_SYS_PAGE_NO) {
                     ^~~~~~~~~~~~~
      

      Here's the full build log.

      Attachments

        Issue Links

          Activity

            People

              wlad Vladislav Vaintroub
              mschorm Michal Schorm
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.