aboutsummaryrefslogtreecommitdiffstats
path: root/code/tools/lcc/cpp/cpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'code/tools/lcc/cpp/cpp.c')
-rw-r--r--code/tools/lcc/cpp/cpp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/code/tools/lcc/cpp/cpp.c b/code/tools/lcc/cpp/cpp.c
index 6739e4d..1fcffbc 100644
--- a/code/tools/lcc/cpp/cpp.c
+++ b/code/tools/lcc/cpp/cpp.c
@@ -204,9 +204,14 @@ control(Tokenrow *trp)
error(WARNING, "Syntax error in #endif");
break;
+ case KWARNING:
+ trp->tp = tp+1;
+ error(WARNING, "#warning directive: %r", trp);
+ break;
+
case KERROR:
trp->tp = tp+1;
- error(WARNING, "#error directive: %r", trp);
+ error(ERROR, "#error directive: %r", trp);
break;
case KLINE: