Build: Reduce warnings.

This commit is contained in:
John Kessenich 2018-12-13 18:43:02 -07:00
parent 236eb0d325
commit 30b697ee63
2 changed files with 10 additions and 9 deletions

3
glslang/MachineIndependent/preprocessor/Pp.cpp Normal file → Executable file
View file

@ -1121,7 +1121,8 @@ int TPpContext::tZeroInput::scan(TPpToken* ppToken)
if (done)
return EndOfInput;
strcpy(ppToken->name, "0");
ppToken->name[0] = '0';
ppToken->name[1] = 0;
ppToken->ival = 0;
ppToken->space = false;
done = true;