Opened 12 years ago
Last modified 12 years ago
#4692 new Patches
conversion from string literal to 'char *' is deprecated
Reported by: | 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)
Change History (4)
by , 12 years ago
Attachment: | 4692-fix-warning.patch added |
---|
comment:1 by , 12 years ago
Type: | Bugs → Patches |
---|
In Guidelines/WarningsGuidelines under the heading "deprecated conversion from string constant to ‘char*’" this is actually one of the examples given!
Note:
See TracTickets
for help on using tickets.
Fix warnings