ref: fed5b85cc2ccff56e815e8d964f4fb80f694c5d0
parent: 3b52a1e7d7756e0b70b79edbd47fab5b19450164
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Jul 18 05:52:27 EDT 2015
Discard input in #error it we have to discard the rest of the input if we don't want to have a trailing error.
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -438,7 +438,8 @@
if (cppoff)
return;
printerr("#error %s", input->p);
- /* TODO: discard input */
+ *input->p = '\0';
+ next();
}
static void