fix build with -warnings-are-errors

Change-Id: Ic8929ed77f0f2fa8ca7a8d7a91cfbe48918c2043
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
Stephan Binner 2015-04-22 11:27:53 +02:00
parent b31e98d477
commit a40379de1a

View File

@ -118,7 +118,8 @@ static void stackTrace()
"quit\n"
"EOF\n",
(int)getpid());
system(cmd);
if (system(cmd) == -1)
fprintf(stderr, "calling gdb failed\n");
fprintf(stderr, "========= End of stack trace ==============\n");
#endif
}