View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009639CMakeCMakepublic2009-10-02 04:242011-06-06 18:25
ReporterClaudio Bley 
Assigned ToBill Hoffman 
PrioritynormalSeveritytweakReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in VersionCMake 2.8.4 
Summary0009639: gcc "deprecated conversion from string constant to char*" warnings
DescriptionI don't like annoying warnings like these:

------------------------------------------------------------------------------
c:/build/CMake/Source/kwsys/SystemTools.cxx: In static member function 'static bool cmsys::SystemTools::WriteRegistryValue(const char*, const char*, cmsys::SystemTools::KeyWOW64)':
c:/build/CMake/Source/kwsys/SystemTools.cxx:740: warning: deprecated conversion from string constant to 'CHAR*'
[ 2%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/Registry.obj
c:/build/CMake/Source/kwsys/Registry.cxx: In member function 'virtual bool cmsys::RegistryHelper::Open(const char*, const char*, int)':
c:/build/CMake/Source/kwsys/Registry.cxx:406: warning: deprecated conversion from string constant to 'CHAR*'
...
c:/build/CMake/Source/cmGlobalVisualStudioGenerator.cxx: In function 'void WriteVSMacrosFileRegistryEntry(const std::string&, const std::string&, const std::string&)':
c:/build/CMake/Source/cmGlobalVisualStudioGenerator.cxx:622: warning: deprecated conversion from string constant to 'CHAR*'
[ 46%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmWin32ProcessExecution.obj
c:/build/CMake/Source/cmWin32ProcessExecution.cxx: In function 'BOOL RealPopenCreateProcess(const char*, const char*, const char*, void*, void*, void*, void**, bool, std::string&)':
c:/build/CMake/Source/cmWin32ProcessExecution.cxx:287: warning: deprecated conversion from string constant to 'char*'
------------------------------------------------------------------------------

The attached patch fixes these warnings.
TagsNo tags attached.
Attached Filesdiff file icon cmake_string_conversion_warning.diff [^] (2,756 bytes) 2009-10-02 04:24 [Show Content]

 Relationships

  Notes
(0026689)
David Cole (manager)
2011-06-06 18:25

Closing resolved issues that have not been updated in more than 3 months.

 Issue History
Date Modified Username Field Change
2009-10-02 04:24 Claudio Bley New Issue
2009-10-02 04:24 Claudio Bley File Added: cmake_string_conversion_warning.diff
2010-12-15 09:07 David Cole Status new => assigned
2010-12-15 09:07 David Cole Assigned To => Bill Hoffman
2011-02-03 18:23 David Cole Status assigned => resolved
2011-02-03 18:23 David Cole Fixed in Version => CMake 2.8.4
2011-02-03 18:23 David Cole Resolution open => fixed
2011-06-06 18:25 David Cole Status resolved => closed
2011-06-06 18:25 David Cole Note Added: 0026689


Copyright © 2000 - 2018 MantisBT Team