* [gentoo-commits] gentoo-x86 commit in app-misc/roadnav/files: roadnav-0.19-gcc45.patch
@ 2010-01-30 6:06 Ryan Hill (dirtyepic)
0 siblings, 0 replies; only message in thread
From: Ryan Hill (dirtyepic) @ 2010-01-30 6:06 UTC (permalink / raw
To: gentoo-commits
dirtyepic 10/01/30 06:06:17
Added: roadnav-0.19-gcc45.patch
Log:
Fix build error w/ gcc-4.5.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Revision Changes Path
1.1 app-misc/roadnav/files/roadnav-0.19-gcc45.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/roadnav/files/roadnav-0.19-gcc45.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/roadnav/files/roadnav-0.19-gcc45.patch?rev=1.1&content-type=text/plain
Index: roadnav-0.19-gcc45.patch
===================================================================
diff --git a/src/GPSInterface_Serial.cpp b/src/GPSInterface_Serial.cpp
index c3e9435..fcae209 100644
--- a/src/GPSInterface_Serial.cpp
+++ b/src/GPSInterface_Serial.cpp
@@ -243,7 +243,7 @@ IGPSInterface::EGPSStatus GPSInterface_Serial::GetData(wxGPSEvent * pGPSEvent)
// Echo DeLorme Tripmate's and Earthmate's hello message
LibRoadnavDebug1(wxT("SerialIO"), wxT("Echoing hello message: %s"), strSentence.c_str());
- sprintf(szOut, "%s\r\n", strSentence.mb_str(*wxConvCurrent));
+ sprintf(szOut, "%s\r\n", static_cast<const char *>(strSentence.mb_str(*wxConvCurrent)));
WriteSerial(szOut);
}
else if (!VerifyGPSChecksum(strSentence)) // check NMEA validity
diff --git a/src/TTS_Festival.cpp b/src/TTS_Festival.cpp
index 8623cb3..2950490 100644
--- a/src/TTS_Festival.cpp
+++ b/src/TTS_Festival.cpp
@@ -88,7 +88,7 @@ ITTS::ETTSStatus TTS_Festival::Speak(const wxString & strText)
ppszArgs[2],
64 + strText.Length(),
wxT("echo \\(SayText \\\"%ss\\\"\\) | festival"),
- strText.mb_str(*wxConvCurrent)
+ static_cast<const char *>(strText.mb_str(*wxConvCurrent))
);
wxExecute(ppszArgs, wxEXEC_SYNC);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-30 6:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 6:06 [gentoo-commits] gentoo-x86 commit in app-misc/roadnav/files: roadnav-0.19-gcc45.patch Ryan Hill (dirtyepic)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox