Compiler: Revert "Add #warning directive."
Probably not that useful.
This commit is contained in:
@ -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-"
|
||||
};
|
||||
|
Reference in New Issue
Block a user