Opened 12 years ago

Last modified 12 years ago

#4692 new Patches

conversion from string literal to 'char *' is deprecated

Reported by: luc_j_bourhis@… Owned by: Dave Abrahams
Milestone: To Be Determined Component: python USE GITHUB
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Boost svn trunk rev 64876.

clang++ -o boost/libs/python/src/object/stl_iterator.o -c -DBOOST_ALL_NO_LIB -DBOOST_DISABLE_THREADS -DBOOST_PYTHON_MAX_BASES=2 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_BOOL_INT_STRICT -I/Users/luc/Developer/cctbx/boost -fPIC -fno-strict-aliasing -DNDEBUG -O3 -ffast-math -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 /Users/luc/Developer/cctbx/boost/libs/python/src/object/stl_iterator.cpp
/Users/luc/Developer/cctbx/boost/libs/python/src/object/class.cpp:79:32: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated]
      static char *kwlist[] = {"fget", "fset", "fdel", "doc", 0};
                               ^
/Users/luc/Developer/cctbx/boost/libs/python/src/object/class.cpp:79:40: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated]
      static char *kwlist[] = {"fget", "fset", "fdel", "doc", 0};
                                       ^
/Users/luc/Developer/cctbx/boost/libs/python/src/object/class.cpp:79:48: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated]
      static char *kwlist[] = {"fget", "fset", "fdel", "doc", 0};
                                               ^
/Users/luc/Developer/cctbx/boost/libs/python/src/object/class.cpp:79:56: warning: conversion from string literal to 'char *' is deprecated [-Wdeprecated]
      static char *kwlist[] = {"fget", "fset", "fdel", "doc", 0};
                                                       ^

Attachments (1)

4692-fix-warning.patch (830 bytes ) - added by Matthew Bradbury <matt-bradbury@…> 12 years ago.
Fix warnings

Download all attachments as: .zip

Change History (4)

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

Attachment: 4692-fix-warning.patch added

Fix warnings

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

Type: BugsPatches

In Guidelines/WarningsGuidelines under the heading "deprecated conversion from string constant to ‘char*’" this is actually one of the examples given!

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

Just found an even older ticket with the same problem: #3554.

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

And again at #3776

Note: See TracTickets for help on using tickets.