cmVisualStudio10TargetGenerator: fix a narrowing warning
0xAA literals are integers which doesn't fit into a char array. C++11 says this is an error and VS2015 now warns about it.
This commit is contained in:
parent
8d379cd7ac
commit
b138be07b4
|
@ -307,7 +307,7 @@ void cmVisualStudio10TargetGenerator::Generate()
|
||||||
this->BuildFileStream->SetCopyIfDifferent(true);
|
this->BuildFileStream->SetCopyIfDifferent(true);
|
||||||
|
|
||||||
// Write the encoding header into the file
|
// Write the encoding header into the file
|
||||||
char magic[] = {0xEF,0xBB, 0xBF};
|
char magic[] = {char(0xEF), char(0xBB), char(0xBF)};
|
||||||
this->BuildFileStream->write(magic, 3);
|
this->BuildFileStream->write(magic, 3);
|
||||||
|
|
||||||
//get the tools version to use
|
//get the tools version to use
|
||||||
|
@ -937,7 +937,7 @@ void cmVisualStudio10TargetGenerator::WriteGroups()
|
||||||
path += ".vcxproj.filters";
|
path += ".vcxproj.filters";
|
||||||
cmGeneratedFileStream fout(path.c_str());
|
cmGeneratedFileStream fout(path.c_str());
|
||||||
fout.SetCopyIfDifferent(true);
|
fout.SetCopyIfDifferent(true);
|
||||||
char magic[] = {0xEF,0xBB, 0xBF};
|
char magic[] = {char(0xEF), char(0xBB), char(0xBF)};
|
||||||
fout.write(magic, 3);
|
fout.write(magic, 3);
|
||||||
cmGeneratedFileStream* save = this->BuildFileStream;
|
cmGeneratedFileStream* save = this->BuildFileStream;
|
||||||
this->BuildFileStream = & fout;
|
this->BuildFileStream = & fout;
|
||||||
|
|
Loading…
Reference in New Issue