don't die if embryo_cc brabbles about warnings in the embryo code

SVN revision: 14503
This commit is contained in:
tsauerbeck 2005-04-29 18:46:41 +00:00 committed by tsauerbeck
parent 5e8af45064
commit 63b3408040
1 changed files with 2 additions and 1 deletions

View File

@ -672,7 +672,8 @@ data_write(void)
EMBRYO_PREFIX"/bin/embryo_cc -i %s -o %s %s",
DAT"include", tmpo, tmpn);
ret = system(buf);
if (ret != 0)
/* accept warnings in the embryo code */
if (ret < 0 || ret > 1)
{
fprintf(stderr, "%s: Warning. Compiling script code not clean.\n",
progname);