[mapguide][MG112][New] Fixing build warnings introduced by MG42
Thomas M. Tuerke
thomas.m.tuerke at autodesk.com
Wed Mar 15 17:00:54 EST 2006
You can view the artifact detail at the following URL:
https://mapguide.osgeo.org/servlets/Scarab/id/MG112
Type
Defect
Artifact ID
MG112 (Fixing build warnings introduced by MG42)
Reported by
Thomas M. Tuerke
thomastuerke (thomas.m.tuerke at autodesk.com)
New artifact details:
---------------------------------------------------------
- Developer Notes set to new value
Most of the new warnings rest on the use of type int instead of type size_t (or equivalent,) and for these, two approaches were taken:
* In the case of STRING::find and STRING::length, the results are now kept in a STRING::size_type (other cases use size_t explicitly.)
* In the cases where it's convenient to retain int-like just-before-the-beginning state, a typedef is used to embody this behavior; the use of an unsigned size type made the logic particularly obtuse.
- Description set to new value
Changes to HttpHandler.vcproj introduced new compiler warnings (via Detect64BitPortabilityProblems="true" et al.) which are mitigated by changes to code in this submission.
- Steps to Reproduce set to new value
Build HttpHandler project
- Priority set to new value
P2
- Artifact created
- Component set to new value
Web Server Extensions
- Related Artifacts set to new value
MG42
- Version set to new value
1.0.0
- Defect Severity set to new value
Low
- Summary set to new value
Fixing build warnings introduced by MG42
- Status Explanation set to new value
Code cleanup motivated by compiler warnings indicating questionable practices, in general impairing 64-bit portability.
Earlier project file changes also introduced a bug where a member pointer wasn't being explicitly initialized (and no compiler warning was generated, either....) Previous project settings implicitly did this, letting the condition go unnoticed. Not addressing this caused MapAgent to access illegal memory addresses, causing a crash.
- Subcomponent set to new value
OGC Interface
- Artifact Status set to new value
New
---------------------------------------------------------
This message was automatically generated by Project Tracker.
More information about the Mapguide_issues
mailing list