Fix some warnings.

These are easy to solve and reduce the noise in the Travis build.
This commit is contained in:
kai 2014-12-26 15:03:59 +01:00
parent 1d12c61c62
commit 024b14cd7f
8 changed files with 10 additions and 16 deletions

View file

@ -1212,7 +1212,7 @@ int main(int argc, char **argv)
if (strcmp(m->srcfile->name->str, global.main_d) == 0)
{
static const char buf[] = "void main(){}";
m->srcfile->setbuffer((void *)buf, sizeof(buf));
m->srcfile->setbuffer(const_cast<char *>(buf), sizeof(buf));
m->srcfile->ref = 1;
}
else