Modify

Opened 8 years ago

Last modified 7 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@… 8 years ago.
Uses appropriate casts to get rid of the problem.

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by patrick@…

Attachment: patchfile.patch added

Uses appropriate casts to get rid of the problem.

comment:1 Changed 7 years ago by Matthew Bradbury <matt-bradbury@…>

Type: BugsPatches

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Dave Abrahams.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.