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

mysys/mf_keycache.c reports the warning on MSVC compiler

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.5.28, 10.6.21, 10.11.11, 11.4.5
    • 10.11.12
    • Compiling
    • None
    • OS: Microsoft Windows Server 2019
      The CXX compiler: MSVC 19.29.30158.0

    Description

      mysys/mf_keycache.c reports the following warning or error on MSVC compiler.

      D:\a\mroonga\mroonga\mariadb\mysys\mf_keycache.c(3765,1): error C4090: 'initializing': different 'const' qualifiers
        BLOCK_LINK *const *a= _a;
      ^
      D:\a\mroonga\mroonga\mariadb\mysys\mf_keycache.c(3766,1): error C4090: 'initializing': different 'const' qualifiers
        BLOCK_LINK *const *b= _b;
      ^
      

      The complate log of this issue is https://github.com/mroonga/mroonga/actions/runs/13169554737/job/36757236705#step:18:6212

      We can reproduce that we build mariadb from source using MSVC compiler.
      C4090 is warning in default. However, C4090 is error by environment.

      Attachments

        Issue Links

          Activity

            People

              wlad Vladislav Vaintroub
              komainu8 Horimoto Yasuhiro
              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.