Quoting Ross Finlayson <finlay...@live555.com>:
> Just let me know the functions (and parameters) for which this is an > issue (there probably aren't many of them), and I'll fix them. Hi, There are functions, but also "char *" variables like that : char * example; example = "const string"; please find a list of the warnings attached (using today release).
make | grep deprecated MP3StreamState.cpp: In member function âvoid MP3StreamState::writeGetCmd(const char*, short unsigned int, const char*)â: MP3StreamState.cpp:201: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âchar* RTSPClient::describeURL(const char*, Authenticator*, Boolean, int)â: RTSPClient.cpp:202: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âchar* RTSPClient::sendOptionsCmd(const char*, char*, char*, Authenticator*, int)â: RTSPClient.cpp:551: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::announceSDPDescription(const char*, const char*, Authenticator*, int)â: RTSPClient.cpp:669: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::setupMediaSubsession(MediaSubsession&, Boolean, Boolean, Boolean)â: RTSPClient.cpp:851: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp:859: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp:904: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::playMediaSession(MediaSession&, double, double, float)â: RTSPClient.cpp:1085: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::playMediaSubsession(MediaSubsession&, double, double, float, Boolean)â: RTSPClient.cpp:1186: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::pauseMediaSession(MediaSession&)â: RTSPClient.cpp:1276: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::pauseMediaSubsession(MediaSubsession&)â: RTSPClient.cpp:1331: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::recordMediaSubsession(MediaSubsession&)â: RTSPClient.cpp:1392: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::setMediaSessionParameter(MediaSession&, const char*, const char*)â: RTSPClient.cpp:1452: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::getMediaSessionParameter(MediaSession&, const char*, char*&)â: RTSPClient.cpp:1517: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp:1543: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::teardownMediaSession(MediaSession&)â: RTSPClient.cpp:1687: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::teardownMediaSubsession(MediaSubsession&)â: RTSPClient.cpp:1754: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âchar* RTSPClient::createAuthenticatorString(const Authenticator*, const char*, const char*)â: RTSPClient.cpp:2000: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp:2011: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp: In member function âBoolean RTSPClient::setupHTTPTunneling(const char*, Authenticator*)â: RTSPClient.cpp:2425: warning: deprecated conversion from string constant to âchar*â RTSPClient.cpp:2477: warning: deprecated conversion from string constant to âchar*â SIPClient.cpp: In member function âchar* SIPClient::invite1(Authenticator*)â: SIPClient.cpp:206: warning: deprecated conversion from string constant to âchar*â SIPClient.cpp:225: warning: deprecated conversion from string constant to âchar*â SIPClient.cpp:255: warning: deprecated conversion from string constant to âchar*â SIPClient.cpp: In member function âBoolean SIPClient::sendACK()â: SIPClient.cpp:645: warning: deprecated conversion from string constant to âchar*â SIPClient.cpp: In member function âBoolean SIPClient::sendBYE()â: SIPClient.cpp:686: warning: deprecated conversion from string constant to âchar*â SIPClient.cpp: In member function âchar* SIPClient::createAuthenticatorString(const Authenticator*, const char*, const char*)â: SIPClient.cpp:860: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp: In member function âBoolean MediaSession::initializeWithSDP(const char*)â: MediaSession.cpp:150: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:159: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp: In static member function âstatic char* MediaSession::lookupPayloadFormat(unsigned char, unsigned int&, unsigned int&)â: MediaSession.cpp:432: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:433: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:434: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:435: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:436: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:437: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:438: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:439: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:440: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:441: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:442: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:443: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:444: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:446: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:447: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:448: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:449: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:450: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:451: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:452: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:453: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:454: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:455: warning: deprecated conversion from string constant to âchar*â MediaSession.cpp:456: warning: deprecated conversion from string constant to âchar*â WAVAudioFileServerMediaSubsession.cpp: In member function âvirtual RTPSink* WAVAudioFileServerMediaSubsession::createNewRTPSink(Groupsock*, unsigned char, FramedSource*)â: WAVAudioFileServerMediaSubsession.cpp:139: warning: deprecated conversion from string constant to âchar*â WAVAudioFileServerMediaSubsession.cpp:146: warning: deprecated conversion from string constant to âchar*â WAVAudioFileServerMediaSubsession.cpp:156: warning: deprecated conversion from string constant to âchar*â WAVAudioFileServerMediaSubsession.cpp:160: warning: deprecated conversion from string constant to âchar*â WAVAudioFileServerMediaSubsession.cpp:167: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp: In function âint setupDatagramSocket(UsageEnvironment&, Port, Boolean)â: GroupsockHelper.cpp:60: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp:66: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp:72: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp:93: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp:128: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp: In function âint setupStreamSocket(UsageEnvironment&, Port, Boolean)â: GroupsockHelper.cpp:153: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp:159: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp:165: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp:209: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp: In function âint blockUntilReadable(UsageEnvironment&, int, timeval*)â: GroupsockHelper.cpp:237: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp:242: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp: In function âint readSocket(UsageEnvironment&, int, unsigned char*, unsigned int, sockaddr_in&, timeval*)â: GroupsockHelper.cpp:293: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp: In function âBoolean writeSocket(UsageEnvironment&, int, in_addr, Port, u_int8_t, unsigned char*, unsigned int)â: GroupsockHelper.cpp:339: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp: In function âunsigned int getBufferSize(UsageEnvironment&, int, int)â: GroupsockHelper.cpp:366: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp: In function âBoolean socketJoinGroup(UsageEnvironment&, int, netAddressBits)â: GroupsockHelper.cpp:439: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp: In function âBoolean socketJoinGroupSSM(UsageEnvironment&, int, netAddressBits, netAddressBits)â: GroupsockHelper.cpp:507: warning: deprecated conversion from string constant to âchar*â GroupsockHelper.cpp: In function âBoolean getSourcePort(UsageEnvironment&, int, Port&)â: GroupsockHelper.cpp:548: warning: deprecated conversion from string constant to âchar*â In file included from /usr/include/c++/4.2/backward/strstream:51, from Groupsock.cpp:30: /usr/include/c++/4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. Groupsock.cpp: In member function âint Groupsock::outputToAllMembersExcept(DirectedNetInterface*, u_int8_t, unsigned char*, unsigned int, netAddressBits)â: Groupsock.cpp:420: warning: dereferencing type-punned pointer will break strict-aliasing rules In file included from /usr/include/c++/4.2/backward/strstream:51, from NetInterface.cpp:29: /usr/include/c++/4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. testMP3Streamer.cpp: In function âint main(int, char**)â: testMP3Streamer.cpp:74: warning: deprecated conversion from string constant to âchar*â testMPEG1or2VideoStreamer.cpp: In function âint main(int, char**)â: testMPEG1or2VideoStreamer.cpp:65: warning: deprecated conversion from string constant to âchar*â testMPEG1or2AudioVideoStreamer.cpp: In function âint main(int, char**)â: testMPEG1or2AudioVideoStreamer.cpp:62: warning: deprecated conversion from string constant to âchar*â testMPEG2TransportStreamer.cpp: In function âint main(int, char**)â: testMPEG2TransportStreamer.cpp:58: warning: deprecated conversion from string constant to âchar*â testWAVAudioStreamer.cpp: In function âvoid play()â: testWAVAudioStreamer.cpp:120: warning: deprecated conversion from string constant to âchar*â testWAVAudioStreamer.cpp:132: warning: deprecated conversion from string constant to âchar*â testMP3Receiver.cpp: In function âint main(int, char**)â: testMP3Receiver.cpp:61: warning: deprecated conversion from string constant to âchar*â testMPEG1or2VideoReceiver.cpp: In function âint main(int, char**)â: testMPEG1or2VideoReceiver.cpp:56: warning: deprecated conversion from string constant to âchar*â sapWatch.cpp: In function âint main(int, char**)â: sapWatch.cpp:35: warning: deprecated conversion from string constant to âchar*â testRelay.cpp: In function âint main(int, char**)â: testRelay.cpp:40: warning: deprecated conversion from string constant to âchar*â testRelay.cpp:64: warning: deprecated conversion from string constant to âchar*â playCommon.cpp:93: warning: deprecated conversion from string constant to âchar*â
_______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel