mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Linux: Tons of warning cleanup plus workaround a nasty crash problem in StatusBarMessage.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4234 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
e3d505c631
commit
0a576c7508
29 changed files with 107 additions and 110 deletions
|
@ -395,7 +395,7 @@ int main(int argc, const char *argv[])
|
|||
|
||||
codes = new std::vector<u16>[lines];
|
||||
|
||||
for(int i = 0; i < lines; i++)
|
||||
for (int i = 0; i < lines; i++)
|
||||
{
|
||||
if (!File::ReadFileToString(true, files[i].c_str(), currentSource))
|
||||
{
|
||||
|
@ -404,14 +404,15 @@ int main(int argc, const char *argv[])
|
|||
}
|
||||
else
|
||||
{
|
||||
if(!Assemble(currentSource.c_str(), codes[i], force))
|
||||
if (!Assemble(currentSource.c_str(), codes[i], force))
|
||||
{
|
||||
printf("Assemble: Assembly of %s failed due to errors\n",
|
||||
files[i].c_str());
|
||||
lines--;
|
||||
}
|
||||
if(outputSize)
|
||||
printf("%s: %d\n", files[i].c_str(), codes[i].size());
|
||||
if (outputSize) {
|
||||
printf("%s: %d\n", files[i].c_str(), (int)codes[i].size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -425,13 +426,14 @@ int main(int argc, const char *argv[])
|
|||
{
|
||||
std::vector<u16> code;
|
||||
|
||||
if(!Assemble(source.c_str(), code, force)) {
|
||||
if (!Assemble(source.c_str(), code, force)) {
|
||||
printf("Assemble: Assembly failed due to errors\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(outputSize)
|
||||
printf("%s: %d\n", input_name.c_str(), code.size());
|
||||
if (outputSize) {
|
||||
printf("%s: %d\n", input_name.c_str(), (int)code.size());
|
||||
}
|
||||
|
||||
if (!output_name.empty())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue