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

LP:385648 - Visual C++ Compile error on storage/maria/ma_rt_index.c

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Compiler: Visual C++ 2008 Express

      Problem: Visual Studio generates the following errors due a variable declaration after an assignment.
      ------ Build started: Project: maria, Configuration: Release Win32 ------
      Compiling...
      ma_rt_index.c
      .\ma_rt_index.c(1141) : error C2275: 'uchar' : illegal use of this type as an expression
      C:\My Projects\maria\include\my_global.h(996) : see declaration of 'uchar'
      .\ma_rt_index.c(1141) : error C2065: 'page_buf' : undeclared identifier
      .\ma_rt_index.c(1142) : error C2275: 'MARIA_PAGE' : illegal use of this type as an expression
      c:\my projects\maria\storage\maria\maria_def.h(821) : see declaration of 'MARIA_PAGE'
      .\ma_rt_index.c(1142) : error C2146: syntax error : missing ';' before identifier 'page'
      .\ma_rt_index.c(1142) : error C2065: 'page' : undeclared identifier
      .\ma_rt_index.c(1146) : error C2065: 'page_buf' : undeclared identifier

      (repeating and related errors cut)

      Build log was saved at "file://c:\My Projects\maria\storage\maria\maria.dir\Release\BuildLog.htm"
      maria - 31 error(s), 5 warning(s)
      ========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

      Solution: Reorder declarations as noted in the attached patch.

      Attachments

        Activity

          People

            Unassigned Unassigned
            brianevans Brian Evans (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 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.