Compiler: Revert "Add #warning directive."

Probably not that useful.
This commit is contained in:
Arkshine
2014-08-17 10:51:06 +02:00
parent 32b546df69
commit ca7b0ceadd
3 changed files with 12 additions and 22 deletions

View File

@ -1374,14 +1374,6 @@ static int command(void)
if (!SKIPPING)
error(111,lptr); /* user error */
break;
case tpWARNING:
while (*lptr<=' ' && *lptr!='\0')
lptr++;
if (!SKIPPING) {
str=strtok((char*)lptr, "\n");
error(234, str != NULL ? str : (char*)lptr); /* user warning, and remove unnecessary newline */
}
break;
default:
error(31); /* unknown compiler directive */
ret=SKIPPING ? CMD_CONDFALSE : CMD_NONE; /* process as normal line */
@ -1862,7 +1854,7 @@ char *sc_tokens[] = {
"sleep", "state", "static", "stock", "switch", "tagof", "while",
"#assert", "#define", "#else", "#elseif", "#emit", "#endif", "#endinput",
"#endscript", "#error", "#file", "#if", "#include", "#line", "#pragma",
"#tryinclude", "#undef", "#warning",
"#tryinclude", "#undef",
";", ";", "-integer value-", "-rational value-", "-identifier-",
"-label-", "-string-"
};