Be able to compile with -Wwrite-strings

This commit is contained in:
2018-07-12 15:58:29 +02:00
parent dff0a5c968
commit 96fe73a39f
4 changed files with 13 additions and 11 deletions

4
vm.c
View File

@@ -2197,7 +2197,7 @@ PH7_PRIVATE sxi32 PH7_VmThrowError(
{
SyBlob *pWorker = &pVm->sWorker;
SyString *pFile;
char *zErr;
const char *zErr;
sxi32 rc;
if( !pVm->bErrReport ){
/* Don't bother reporting errors */
@@ -2246,7 +2246,7 @@ static sxi32 VmThrowErrorAp(
{
SyBlob *pWorker = &pVm->sWorker;
SyString *pFile;
char *zErr;
const char *zErr;
sxi32 rc;
if( !pVm->bErrReport ){
/* Don't bother reporting errors */