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

10.1 Build warning, error: 'subkeys.f' may be used uninitialized in this function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.1
    • Fix Version/s: 10.1
    • Component/s: Compiling
    • Labels:
      None

      Description

      Build 10.1 in debug or optimized, and compilation will fail with:

      /data/git/10.1_dbg/storage/myisam/ft_nlq_search.c: In function 'walk_and_match':
      /data/git/10.1_dbg/storage/myisam/ft_nlq_search.c:120:16: error: 'subkeys.f' may be used uninitialized in this function [-Werror=maybe-uninitialized]
           if (subkeys.i < 0)
               ~~~~~~~^~
      

      Workaround, w/ thanks to Sergei:
      -DMYSQL_MAINTAINER_MODE=0

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Roel Roel Van de Paar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: