Opened 13 years ago

Last modified 12 years ago

#3776 new Patches

libs/python/src/object/class.cpp treats string constant as char*

Reported by: anonymous Owned by: Dave Abrahams
Milestone: Boost 1.42.0 Component: python USE GITHUB
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc:

Description

gcc gives the following warnings:

libs/python/src/object/class.cpp: In function ‘int boost::python::property_init(PyObject*, PyObject*, PyObject*)’: libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’ libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’ libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’ libs/python/src/object/class.cpp:79: warning: deprecated conversion from string constant to ‘char*’

Attachments (1)

patchfile.patch (756 bytes ) - added by patrick@… 13 years ago.
Uses appropriate casts to get rid of the problem.

Download all attachments as: .zip

Change History (2)

by patrick@…, 13 years ago

Attachment: patchfile.patch added

Uses appropriate casts to get rid of the problem.

comment:1 by Matthew Bradbury <matt-bradbury@…>, 12 years ago

Type: BugsPatches
Note: See TracTickets for help on using tickets.