Ticket #159 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

request_parser.c error on Windows: cannot convert from 'const char *' to 'char *'

Reported by: jmckenna Owned by:
Priority: major Milestone:
Component: zoo-kernel Version:
Keywords: Cc: jmckenna@…

Description

Using Visual Studio 2012 compiler, the following errors are thrown:

request_parser.c(1743) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *'
        Conversion loses qualifiers
request_parser.c(1792) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *'
        Conversion loses qualifiers
request_parser.c(1795) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *'
        Conversion loses qualifiers
request_parser.c(1807) : error C2440: '=' : cannot convert from 'const char *' to 'char *'
        Conversion loses qualifiers
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

more about this error: https://msdn.microsoft.com/en-us/library/sy5tsf8z.aspx

I am attaching a possible fix for this (please review if it is valid).

Attachments (1)

request_parser.patch (1005 bytes) - added by jmckenna 7 years ago.
possible fix (please review)

Download all attachments as: .zip

Change History

Changed 7 years ago by jmckenna

possible fix (please review)

Changed 7 years ago by djay

This patch looks perfectly reasonable to me.

It has to be integrated.

Changed 7 years ago by jmckenna

  • cc jmckenna@… added
  • status changed from new to closed
  • resolution set to fixed

applied to master through changeset:836

Note: See TracTickets for help on using tickets.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png