[MDEV-3385] LP:385648 - Visual C++ Compile error on storage/maria/ma_rt_index.c Created: 2009-06-10  Updated: 2012-10-04  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Brian Evans (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug385648.xml    

 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.



 Comments   
Comment by Brian Evans (Inactive) [ 2009-06-10 ]

Re: Visual C++ Compile error on storage/maria/ma_rt_index.c

Comment by Brian Evans (Inactive) [ 2009-06-10 ]

maria variable order.patch
LPexportBug385648_maria%20variable%20order.patch

Comment by Brian Evans (Inactive) [ 2009-09-09 ]

Re: Visual C++ Compile error on storage/maria/ma_rt_index.c
Fixed with r2728

Comment by Rasmus Johansson (Inactive) [ 2009-11-17 ]

Launchpad bug id: 385648

Generated at Thu Feb 08 06:48:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.