commit a28ccde717c0ae7543a5f358fa10790d7177b6a7
parent da8e1d6c8cd2711d7a8566bf658399fbe3531b39
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 21 Jul 2015 09:34:14 +0200
Discard input in pragma()
At this point scc does not accept any pragma, so it must ignore
everything in pragma() and do not cause an error due to trailing
characters.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cc1/cpp.c b/cc1/cpp.c
@@ -436,7 +436,8 @@ pragma(void)
{
if (cppoff)
return;
- /* TODO: discard input */
+ *input->p = '\0';
+ next();
}
static void