mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-08 11:56:12 +03:00
Fix some warnings.
These are easy to solve and reduce the noise in the Travis build.
This commit is contained in:
parent
1d12c61c62
commit
024b14cd7f
8 changed files with 10 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue