From: Vadim Zeitlin Date: Thu, 12 Jun 2008 18:51:27 +0000 (+0000) Subject: get rid of several dozen of warnings when using g++ >= 4.2 about string literals... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9967de02678d23a149183bc5908c7fadcd4f76eb?ds=sidebyside;hp=f380544a4c4fccec74ef1238110b5c856412d773 get rid of several dozen of warnings when using g++ >= 4.2 about string literals to char* conversion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/stc/scintilla/src/LexNsis.cxx b/src/stc/scintilla/src/LexNsis.cxx index 93f0cd4d62..ab6304c42e 100644 --- a/src/stc/scintilla/src/LexNsis.cxx +++ b/src/stc/scintilla/src/LexNsis.cxx @@ -98,7 +98,7 @@ static bool NsisNextLineHasElse(unsigned int start, unsigned int end, Accessor & return false; } -static int NsisCmp( char *s1, char *s2, bool bIgnoreCase ) +static int NsisCmp( const char *s1, const char *s2, bool bIgnoreCase ) { if( bIgnoreCase ) return CompareCaseInsensitive( s1, s2);